分类
Develop Java ruby on rails 算法

Leetcode: Factor Combinations

Numbers can be regarded as product of its factors. For […]

分类
Develop ruby on rails 算法

Leetcode: Binary Search

Given a sorted (in ascending order) integer array nums […]

分类
Develop ruby on rails 算法

Leetcode: Implement Trie (Prefix Tree)

Implement a trie with insert, search, and startsWith me […]

分类
Develop ruby on rails 算法

Leetcode: Encode and Decode TinyURL

TinyURL is a URL shortening service where you enter a U […]

分类
C++ Develop ruby on rails 算法

Leetcode: Valid Number

Question Validate if a given string is numeric. Some ex […]

分类
Develop http mysql ruby on rails

Run Docker Rails Application Which Can Access Mysql Running at same Host in Mac OS and Linux

Docker Mac Native has been released for a long time. It […]

分类
Develop ruby on rails

Step By Step of Creating a Ruby Gem

Step By Step of Creating a Ruby Gem I’m going to […]

分类
Develop ruby on rails

[Repost] The definition of nil, empty, blank and present in ruby on rails

分类
Develop ruby on rails

Formatting DateTime in Rails

There are some useful params with Time#to_s [14] pry(ma […]

分类
Develop ruby on rails

[Solved] Install Nokogiri on Yosemite with Ruby 2.1.3

Updated to Yosemite and got the following problem while […]

分类
Develop ruby on rails

Time Zone in Rails

Get All Time Zones Use ActiveSupport::TimeZone.all.each […]

分类
Develop ruby on rails

acts_as_paranoid Gem in Rails

https://github.com/goncalossilva/acts_as_paranoid This […]

分类
Develop ruby on rails

Rails Gem CanCan

CanCan https://github.com/ryanb/cancan 用来处理用户权限,可以制定规则来 […]

分类
Develop ruby on rails

Using VCR with WebMock in Rails Rspec Tests

If the application need interaction with another web se […]

分类
Develop ruby on rails

[Repost] Here Document in Ruby

This is repost from http://log.gmarik.info/2007/12/ruby […]

分类
Develop ruby on rails

STI of ActiveRecord in Rails

STI, Single Table Inheritance, supported by ActiveRecor […]

分类
Develop ruby on rails

The difference from %w to %W in Ruby

Difference between %w and %W In short, %w act as ‘, whi […]

分类
Develop ruby on rails

Typhoeus : a gem for http requests in rails.

Typhoeus Single request request = Typhoeus::Request.new […]

分类
C++ Develop ruby on rails 算法

LeetCode: Trapping Rain Water

Trapping Rain Water Given n non-negative integers repre […]

分类
C++ Develop ruby on rails 算法

LeetCode: Merge Intervals

Merge Intervals Given a collection of intervals, merge […]

分类
C++ Develop ruby on rails 算法

LeetCode: Letter Combinations of a Phone Number

Letter Combinations of a Phone Number Given a digit str […]