An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
A quick ruby command line to pretty-print piped json.
Put this somewhere in your path, with chmod +x, then:
curl http://myapp.com/stuff.json | json
| ########################################## | |
| # | |
| # c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.82 | |
| # | |
| # Latest Change: | |
| # - MORE tweaks to get the iOS 10+ and 9- working | |
| # - Support iOS 10+ | |
| # - Corrected typo for iOS 1-10+ (thanks @stuikomma) |
| @media only screen and (max-device-width: 480px) { | |
| img[class="image-class"] { width: 100% !important; } | |
| p[class="p-class"] { font-size: 14px !important; } | |
| } |
Remove rbenv and any rubies, gems etc.:
$ rm -rf ~/.rbenv
Uninstall rbenv if installed via Homebrew
$ brew uninstall rbenv
Remove references to rbenv in ~/.bash_profile etc.
| describe Company do | |
| before { @company = Company.new } | |
| describe "when address2" do | |
| it_behaves_like "a text field", "address2", "a", Company.address2.limit do | |
| let(:model) { @company } | |
| end | |
| end | |
| end |
| Gem::Specification.new do |s| | |
| # normal spec stuff above | |
| s.files = `git ls-files`.split("\n") | |
| # get an array of submodule dirs by executing 'pwd' inside each submodule | |
| gem_dir = File.expand_path(File.dirname(__FILE__)) + "/" | |
| `git submodule --quiet foreach pwd`.split($\).each do |submodule_path| | |
| Dir.chdir(submodule_path) do | |
| submodule_relative_path = submodule_path.sub gem_dir, "" | |
| # issue git ls-files in submodule's directory and |
| # unicorn | |
| description "unicorn ruby app server" | |
| start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345]) | |
| stop on runlevel [!2345] | |
| env WORKDIR=/data | |
| env PIDFILE=/data/tmp/pids/unicorn.pid | |
| env CFGFILE=/data/config/unicorn.rb |