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
ENV["WATCHR"] = "1" | |
system 'clear' | |
def growl(message) | |
growlnotify = `which growlnotify`.chomp | |
title = "Watchr Test Results" | |
puts message | |
image = message.match(/\s0\s(errors|failures)/) ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png" | |
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'" | |
system %(#{growlnotify} #{options} &) |
types { | |
text/html html htm shtml; | |
text/css css; | |
text/xml xml; | |
image/gif gif; | |
image/jpeg jpeg jpg; | |
application/x-javascript js; | |
application/atom+xml atom; | |
application/rss+xml rss; |
set :sync_directories, ["public/assets", "public/galleries"] | |
set :sync_backups, 3 |
#!/usr/bin/ruby | |
# | |
# This script installs to /usr/local only. To install elsewhere you can just | |
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like. | |
# | |
# | |
# 30th March 2010: | |
# Added a check to make sure user is in the staff group. This was a problem | |
# for me, and I think it was due to me migrating my account over several | |
# versions of OS X. I cannot verify that for sure, and it was tested on |
Category - info | |
Domain - http://slideshare.net | |
http://www.slideshare.net/doina/happy-easter-from-holland-slideshare | |
http://www.slideshare.net/stinson/easter-1284190 | |
http://www.slideshare.net/angelspascual/easter-events | |
http://www.slideshare.net/sirrods/happy-easter-3626014 | |
http://www.slideshare.net/sirrods/happy-easter-wide-screen | |
http://www.slideshare.net/carmen_serbanescu/easter-holiday | |
http://www.slideshare.net/Lithuaniabook/easter-1255880 |
require 'rubygems' | |
require 'oembed' | |
OEmbed::Providers.register(OEmbed::Providers::Youtube) | |
OEmbed::Providers.get("http://www.youtube.com/watch?v=2BYXBC8WQ5k").html #=> expected HTML | |
OEmbed::Providers.get("http://vimeo.com/19231255").html #=> An OEmbed::NotFound error | |
OEmbed::Providers.register(OEmbed::Providers::Vimeo) | |
OEmbed::Providers.get("http://vimeo.com/19231255").html #=> expected HTML |
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf | |
# /opt/local/share/doc/tmux/vim-keys.conf | |
# | |
# URLs to read: | |
# |
export WORKING_DIR=~/work/textaurant | |
cd $WORKING_DIR; mvim; gitx | |
tmux start-server | |
tmux new-session -d -s Textaurant -n work | |
tmux new-window -tTextaurant:1 -n server | |
tmux new-window -tTextaurant:2 -n test | |
tmux send-keys -tTextaurant:0 'cd $WORKING_DIR' C-m |
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
class Adder | |
def initialize(a) | |
@a = a | |
end | |
def add_to(b) | |
@a + b | |
end | |
end | |
add_four_to = Adder.new(4).method(:add_to) | |
[1,2,3].map(&add_four_to) |