install cycript
brew install https://gist.github.com/raw/890258/cycript.rb
wget https://gist.github.com/raw/890258/hack_propane.js
chmod +x hack_propane.js
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Adaptive Layout Idea | |
| </title> | |
| <link rel="stylesheet" href="basic_defaults.css" /> | |
| <noscript> | |
| <link rel="stylesheet" href="fallback.css" /> |
brew install https://gist.github.com/raw/890258/cycript.rb
wget https://gist.github.com/raw/890258/hack_propane.js
chmod +x hack_propane.js
| .__ ___. .__ __ .__ .___ | |
| | |__ _____ ______ ______ ___.__. \_ |__ |__|_______ _/ |_ | |__ __| _/_____ ___.__. | |
| | | \ \__ \ \____ \ \____ \< | | | __ \ | |\_ __ \\ __\| | \ / __ | \__ \ < | | | |
| | Y \ / __ \_| |_> >| |_> >\___ | | \_\ \| | | | \/ | | | Y \/ /_/ | / __ \_\___ | | |
| |___| /(____ /| __/ | __/ / ____| |___ /|__| |__| |__| |___| /\____ | (____ // ____| | |
| \/ \/ |__| |__| \/ \/ \/ \/ \/ \/ | |
| _____ ___ ___ ___ ___ ___ | |
| / /::\ / /\ / /\ /__/\ /__/\ /__/| ___ | |
| / /:/\:\ / /:/_ / /:/_ \ \:\ \ \:\ | |:| / /\ | |
| / /:/ \:\ / /:/ /\ / /:/ /\ \ \:\ \ \:\ | |:| / /:/ |
| import base64 | |
| import httplib | |
| import threading | |
| import urllib | |
| import tweepy | |
| CONVORE_BOT_USERNAME = '' | |
| CONVORE_BOT_PASSWORD = '' | |
| CONVOTE_TOPIC_ID = '7612' |
| # $ gh-get https://github.com/defunkt/facebox/blob/master/src/facebox.js | |
| function gh-get () { | |
| curl -#O $(echo $1 | sed 's|blob|raw|') | |
| } |
| #ruby | |
| [1,2,3,4].select{ |x| x.even? } | |
| #python | |
| [x for x in [1,2,3,4] if not x%2] | |
| #or, more norvingly | |
| filter(lambda x: not x%2, [1,2,3,4]) | |
| #clojure | |
| (filter #(even? % ) [1 2 3 4]) |
| require "open-uri" | |
| require "rubygems" | |
| require "json" | |
| USERNAME = "henrik" | |
| query = ARGV.first.downcase | |
| gists = JSON.parse(open("http://gist.github.com/api/v1/json/gists/#{USERNAME}").read)['gists'] |
| import time | |
| class Retry(object): | |
| default_exceptions = (Exception) | |
| def __init__(self, tries, exceptions=None, delay=0): | |
| """ | |
| Decorator for retrying function if exception occurs | |
| tries -- num tries | |
| exceptions -- exceptions to catch |
"Other developers are just like us - weird"
"If you ever need to deploy Django, you're good. If you know Capistrano and Unicorn they've got rip-offs of all that stuff."
"I think we should all admit we're horrible coders and move on" "We're all drug addicts - we're fighting methods..."
"It's easy to learn to play the guitar and be able to play Bob Dylan and Weezer and never get better."
"This is basically a talk that was given 30 years ago. We just have to keep giving it every few years because young guys come along and forget it."
| #! /usr/bin/env ruby | |
| # this script takes your current commit, finds all the submodules in it, | |
| # makes them static files in a new tree and updates a branch called 'heroku' | |
| # - this way you can push a project with submodules to heroku easily | |
| # just run this, then run "git push heroku heroku:master" | |
| current_commit = `git rev-parse HEAD` | |
| current_tree = `git rev-parse HEAD^{tree}` | |
| puts "Starting at tree #{current_tree}" |