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
#!/usr/bin/env ruby -w | |
home = ENV['HOME'] | |
blank_audio = home + '/Desktop/Audio.mov' | |
destination = home + '/Music/ideas/' | |
FileUtils.mv(blank_audio, destination + ARGV.join(' ')) |
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
puts "\n--- watchr initialized ---\n\n" | |
def cmd() 'script/spec '; end | |
def run_all_specs | |
system(cmd + 'spec/') | |
end | |
def run_spec(spec) | |
puts "Running #{spec}" |
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
[barnekr@saturnino:php on staging]$ git branch s2 --track origin/staging | |
Branch s2 set up to track remote branch refs/remotes/origin/staging. |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
url = [email protected]:php.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
[branch "master"] |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
[remote "origin"] | |
url = [email protected]:php.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
[branch "master"] |
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
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'uri' | |
require 'pp' | |
# find movie in imdb | |
search_strings = ["commando", "from russia with love"] | |
search_strings.each do |search| | |
search_url = URI.escape("http://www.imdb.com/find?s=tt&q=#{search}") |
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
Ideas for story carding app | |
* KISS | |
* cards should have: | |
** description | |
** points | |
** state [ready, in progress, verify, done] | |
* json fed view in order to simultaneously provide a RESTful API |
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: 0.0 | |
:end: 0.05 | |
:excl: true | |
:message: "Pussy" | |
- :begin: 0.05 | |
:end: 0.15 | |
:excl: true | |
:message: "Dude, you're fucking pathetic!" | |
- :begin: 0.15 | |
:end: 0.25 |
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
#!/usr/bin/env ruby | |
# twail.rb | |
# Twitter stream tail | |
# Copyright 2010 Jonathan Rudenberg | |
# Licensed under the MIT License | |
# | |
# Prerequisites: gem install json twitter-stream | |
require 'optparse' |
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
#!/usr/bin/env ruby -w | |
require 'hpricot' | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
require 'tempfile' | |
test_http = "http://gist.github.com/69452" | |
test_https = "https://gist.github.com/42af948558a3b3704bab" |