A woman brought a very limp duck into a veterinary surgeon. As she laid her pet on the table, the vet pulled out his stethoscope and listened to the bird's chest. After a moment or two, the vet shook his head and sadly said, "I'm sorry, your duck, Cuddles, has passed away." The distressed woman wailed, "Are you sure?" "Yes, I am sure. Your duck is dead," replied the vet.. "How can you be so sure?" she protested. "I mean you haven't done any testing on him or anything. He might just be in a coma or something." The vet rolled his eyes, turned around and left the room. He returned a few minutes later with a black Labrador Retriever. As the duck's owner looked on in amazement, the dog stood on his hind legs, put his front paws on the examination table and sniffed the duck from top to bottom. He then looked up at the vet with sad eyes and shook his head. The vet patted the dog on the head and took it out of the room. A few minutes later he returned with a cat. The cat jumped on the table and also delicately sniffe
This file contains hidden or 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
gem install mysql2 -v 0.3.15 -- --with-mysql-config=/usr/local/Cellar/mysql55/5.5.30/bin/mysql_config |
This file contains hidden or 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
# Put this in your ~/.bash_profile | |
function hr { | |
if [[ -n $1 ]]; then | |
space_character=$1 | |
else | |
space_character='=' | |
fi | |
This file contains hidden or 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
-----BEGIN PUBLIC KEY----- | |
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAon10gBWBgBvj3k9M2dLz | |
h1wSr0aeiX2Fs+Bx+e2T5JG/NQRaBiQBtMESCN+c0dldrgo/72Ayj/phOjW7CGNN | |
vpvCC/zzbnfSoT8NJQqiTw34OmuCOvMDiuCRpIe8Y9tdLJxIJP4gxDyPL7b4Ml5T | |
TaSpcuaGCbDYlRIY2N1tj0q8qFRxumXMemxcvHy2+IPURyVmRKGKyCKNVs8D6sy9 | |
d1cKBEE+ddIKYOA4R8ByghdxhLLhRyqRMsIdw0ON0GtYjQiPRMjHfvsJSOVFpZnT | |
FgLE+0WCeWEA2RhSvMOfD7hU2N1jgXnOZf5dGAiQ6YJc7TYdvdZ5IOqI/xMFDut2 | |
Ng3SuKDkFhUEQBSsoC4yXUiwDjdQJzBgnTXF/RLh2mqkd9v7NfdTIaPlYvWB4f5D | |
gNzpoCEqQKHiJVBI758WrFw1+C+IrbY5ZRN5vhvGsDso2NlwvQyrbMB8AafaZI/5 | |
cDBNwOFtn+B3dXS84y7+Pg1zQwEzQ+Ctkg8tS7TCAVvfJICj1TMtp+dDeNkqXGHg |
This file contains hidden or 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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.2' | |
# Use postgresql as the database for Active Record | |
gem 'pg' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' |
This file contains hidden or 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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
gem 'pg' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' |
This file contains hidden or 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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
# Use postgresql as the database for Active Record | |
gem 'pg' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' |
This file contains hidden or 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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' |
This file contains hidden or 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
// 1. Go to page https://www.linkedin.com/settings/email-frequency | |
// 2. You may need to login | |
// 3. Open JS console | |
// 4. Copy the following code in and execute | |
// 5. No more emails | |
// | |
// Bookmarklet version: | |
// http://chengyin.github.io/linkedin-unsubscribed/ | |
$('.settings li select:has(option[value=never])').val('never'); |
This file contains hidden or 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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |