This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We are using the default ruby http client for the request to the | |
# shortened url, because otherwise a Gemfile or something different | |
# would be necessary | |
require 'net/http' | |
# I am using an example url from webdesignshare.com (with url shortener) | |
uri = URI('http://url.tusiad.org/make-people-stay-website') | |
res = Net::HTTP.get_response(uri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_indent": true, | |
"binary_file_patterns": | |
[ | |
"bower_components/*", | |
"node_packages/*", | |
"public/bower_components/*", | |
"dist/*", | |
"*.jpg", | |
"*.png", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.osx — https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app | |
defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Requirements: | |
## - Ruby on Rails | |
## - Existing Heroku Application | |
## - HTTParty | |
# Get the json content of the | |
# backup and parse it | |
url = 'https://dataclips.heroku.com/xxx.json' | |
json = HTTParty.get(url) |