http://ln.hixie.ch/?start=1037910467&count=1
http://ln.hixie.ch/?start=1137740632&count=1
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| name = raw_input("What is your name?") | |
| quest = raw_input("What is your quest?") | |
| color = raw_input("What is your favorite color?") | |
| print "Ah, so your name is %s, your quest is %s, " \ | |
| "and your favorite color is %s." % (name, quest, color) |
| # -*- encoding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| import requests | |
| from requests_oauthlib import OAuth1 | |
| from urlparse import parse_qs | |
| REQUEST_TOKEN_URL = "https://api.twitter.com/oauth/request_token" | |
| AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize?oauth_token=" | |
| ACCESS_TOKEN_URL = "https://api.twitter.com/oauth/access_token" |
| # -*- encoding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| import requests | |
| from requests_oauthlib import OAuth1 | |
| from urlparse import parse_qs | |
| REQUEST_TOKEN_URL = "https://api.twitter.com/oauth/request_token" | |
| AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize?oauth_token=" | |
| ACCESS_TOKEN_URL = "https://api.twitter.com/oauth/access_token" |
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
| var value = 1000; | |
| var newValue = value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); | |
| console.log(newValue); // "1,000" | |
| regex found in HTML 5 In Action (Manning Publications) |
| source ~/.git-prompt.sh | |
| ####### COLORS ####### | |
| Color_Off='\e[0m' # Text Reset | |
| # Regular Colors | |
| Black='\e[0;30m' # Black | |
| Red='\e[0;31m' # Red | |
| Green='\e[0;32m' # Green | |
| Yellow='\e[0;33m' # Yellow |
fook$^[a-f]*$(...).*\1^(.(?!(ll|ss|mm|rr|tt|ff|cc|bb)))*$|^n|ef^(.)[^p].*\1$^(?!(..+)\1+$)(.)(.\1){3}^[^o].....?$(^39|^44)|(^([0369]|([147][0369]*[258])|(([258]|[147][0369]*[147])([0369]*|[258][0369]*[147])([147]|[258][0369]*[258])))*$)A Pen by Mark Howard on CodePen.