Skip to content

Instantly share code, notes, and snippets.

Shooting for 60 second video
Need about 15-25 minutes of raw footage
Location: Las Vegas Sign
My name is ...
VEGAS BABY!!!
I love Vegas because ...
Let me show you around.
Location: Amigo's Tacos
source "http://rubygems.org"
gem "rails", "3.0.3" gem "autotest", :group => [:test]
gem "autotest-rails", :group => [:test]
gem "bistro_car"
gem "cancan"
@russ
russ / gist.vim
Created September 14, 2010 17:22
" Usage:
"
" :Gist
" post whole text to gist.
"
" :'<,'>Gist
" post selected text to gist.
"
" :Gist -p
" post whole text to gist with private.
@russ
russ / gist.vim
Created September 14, 2010 17:22
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 29-Mar-2010.
" Version: 3.5
" WebPage: http://github.com/mattn/gist-vim/tree/master
" Usage:
"
" :Gist
" post whole text to gist.
#!/usr/bin/env ruby
require "rubygems"
require "uri"
require "open-uri"
require "net/http"
require "json"
host = "http://localhost:3000"
command = ARGV[0]
def greet(subject:String) {
def greeting(subject:String) = "Hello, %s!".format(subject)
println(greeting(subject))
}
greet("World")
class PlayerCharacter(name:String, hp:Int) {
def name() {
ffmpeg -y -threads 2 -i $1 -r 29.97 -vcodec libx264 -s 320x240 -aspect 4:3 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 800kb -maxrate 1250k -bufsize 4M -bt 256k -refs 1 -coder 0 -me_method full -me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ab 112k -ar 48000 -ac 2 $2
#!/usr/bin/env ruby
require File.join(File.dirname(__FILE__), '..', 'lib', 'sheen')
Sheen::Url.destroy_all
class Server < EventMachine::Connection
include Sheen::Server
def backends
# Example MySQL config file for very large systems.
#
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /usr/local/mysql/data) or
# ~/.my.cnf to set user-specific options.
class CreditCardResource
include JsonRpc::Resource
service_api 'http://localhost:3000/billing/credit_cards'
property :number
property :type
end
begin