Skip to content

Instantly share code, notes, and snippets.

View davidjrice's full-sized avatar

David Rice davidjrice

View GitHub Profile
require 'rubygems'
require 'yajl/http_stream'
URL = "http://localhost:5984/comments/_changes?feed=continuous"
Yajl::HttpStream.get(URL, :symbolize_keys => true) do |change|
puts "#{change[:seq]}: #{change[:id]}"
end
var twitterStatus = "not-started";
function monitorTwitter() {
puts('> monitoring twitter stream ');
var twit = new TwitterNode({
user: 'xxx',
password: 'xxx',
track: ['somehashtag']
});
def perform
order = Order.find(order_id)
if !order.paid? && !order.payment
order.expire!
end
end
repeat
tell application "Steam"
tell application "System Events"
keystroke return
end tell
end tell
delay 1
end repeat
#!/usr/bin/env ruby
require 'rubygems'
require 'garb'
require 'fastercsv'
ga = Garb::Session.login('USERNAME', 'PASSWORD')
Garb::Account.all.each do |account|
profile = account.profiles.first
java -jar validator.jar
Failed to load Main-Class manifest attribute from
validator.jar
"javac" -g -nowarn -classpath "./dependencies/commons-codec-1.3/commons-codec-1.3.jar:./dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar:./dependencies/icu4j-charsets-4_4_2.jar:./dependencies/icu4j-4_4_2.jar:./dependencies/iri-0.5/lib/iri.jar:./dependencies/jetty-6.1.26/lib/servlet-api-2.5-20081211.jar:./dependencies/jetty-6.1.26/lib/jetty-6.1.26.jar:./dependencies/jetty-6.1.26/lib/jetty-util-6.1.26.jar:./dependencies/jetty-6.1.26/lib/ext/jetty-ajp-6.1.26.jar:./dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar:./dependencies/rhino1_7R1/js.jar:./dependencies/xerces-2_9_1/xercesImpl.jar:./dependencies/xerces-2_9_1/xml-apis.jar:./dependencies/slf4j-1.5.2/slf4j-log4j12-1.5.2.jar:./dependencies/commons-fileupload-1.2.1/lib/commons-fileupload-1.2.1.jar:./dependencies/isorelax.jar:./dependencies/mozilla/
"jar" cf "./validator/dist/validator.jar" @temp-jar-list
"java" -classpath ./dependencies/commons-codec-1.3/commons-codec-1.3.jar:./dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar:./dependencies/icu4j-charsets-4_4_2.jar:./dependencies/icu4j-4_4_2.jar:./dependencies/iri-0.5/lib/iri.jar:./dependencies/jetty-6.1.26/lib/servlet-api-2.5-20081211.jar:./dependencies/jetty-6.1.26/lib/jetty-6.1.26.jar:./dependencies/jetty-6.1.26/lib/jetty-util-6.1.26.jar:./dependencies/jetty-6.1.26/lib/ext/jetty-ajp-6.1.26.jar:./dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar:./dependencies/rhino1_7R1/js.jar:./dependencies/xerces-2_9_1/xercesImpl.jar:./dependencies/xerces-2_9_1/xml-apis.jar:./dependencies/slf4j-1.5.2/slf4j-log4j12-1.5.2.jar:./dependencies/commons-fileupload-1.2.1/lib/commons-fileupload-1.2.1.jar:./depen
class ControlWord
def positive?
self.class.positive?( title )
end
def promote!
update_attribute(:pos, pos+1)
end
➜ ~ brew install cmake
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz
File already downloaded and cached to /Users/dave/Library/Caches/Homebrew
==> ./bootstrap --prefix=/usr/local/homebrew/Cellar/cmake/2.8.4 --system-libs --no-system-libarchive --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man
==> make
Scanning dependencies of target cmsys_c
[ 0%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/ProcessUNIX.o
Scanning dependencies of target cmsys
[ 0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.o
[ 0%] [ 0%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/Base64.o