Skip to content

Instantly share code, notes, and snippets.

View vinbarnes's full-sized avatar

Kevin R. Barnes vinbarnes

View GitHub Profile
#!/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(' '))
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}"
[barnekr@saturnino:php on staging]$ git branch s2 --track origin/staging
Branch s2 set up to track remote branch refs/remotes/origin/staging.
[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"]
[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"]
@vinbarnes
vinbarnes / gist:320201
Created March 3, 2010 01:31
retrieve movie info from imdb
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}")
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
- :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
#!/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'
#!/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"