Skip to content

Instantly share code, notes, and snippets.

libs = [
'javascripts/lib/underscore/underscore.js',
'javascripts/lib/jquery/jquery.js',
'javascripts/lib/json2/json2.js',
'javascripts/lib/backbone/backbone.js',
'javascripts/lib/backbone.marionette/backbone.marionette.js'
]
require 'open-uri'
require 'active_support/time'
url = ARGV[0] || 'http://www.google.com'
interval_minutes = ARGV[1] || 5
loop do
puts "#{Time.now} - getting #{url}\n\n"
begin
puts open(url).read
require 'sinatra'
get '/' do
puts params.inspect
end
post '/' do
puts params.inspect
puts request.body.read
end
module ChrisScopes
require 'debug_inspector'
def self.included(mod)
bind = nil
RubyVM::DebugInspector.open do |i|
(0..3).each do |n|
bind = i.frame_binding(n)
if bind
bind.instance_variable_set(:@iseq, i.frame_iseq(n))
end
require 'rest-client'
url = 'http://username:password@50.116.40.22:9292/'
build_script = <<-EOF
bundle
rake
EOF
unless ARGV[0]
{"d":{"__type":"ReadOnlyCollectionOfSimpleKioskPtShxX8B:#System.Collections.ObjectModel","list":[{"__type":"SimpleKiosk:#Com.Wolfgang.BCycle.EnterpriseSystem.Domain","Address":{"__type":"Address:#Com.Wolfgang.BCycle.EnterpriseSystem.Domain.Accounts","Addresstype":1,"BikesAvailable":0,"City":"Denver","DocksAvailable":0,"State":"CO","Street":"299 Milwaukee St","Street2":null,"ZipCode":"80206"},"BikesAvailable":11,"DocksAvailable":1,"HoursOfOperation":"06:28 - 21:30","Id":1646,"IsEventBased":false,"Location":{"__type":"Location:#Com.Wolfgang.BCycle.EnterpriseSystem.Domain.Infrastructure","Latitude":39.72055,"Longitude":-104.95253},"Name":"3rd & Milwaukee","PublicText":"","Status":"Active","TimeZone":"(UTC-07:00) Mountain Time (US & Canada)","TotalDocks":13,"TrikesAvailable":0},{"__type":"SimpleKiosk:#Com.Wolfgang.BCycle.EnterpriseSystem.Domain","Address":{"__type":"Address:#Com.Wolfgang.BCycle.EnterpriseSystem.Domain.Accounts","Addresstype":1,"BikesAvailable":0,"City":"Denver","DocksAvailable":0,"State":"CO","St
require 'mechanize'
name = ARGV[0] # Email or Card Number
pass = ARGV[1] # Password
agent = Mechanize.new
login = agent.get 'http://colectivocoffee.com/loyalty/member-login/'
form = login.forms.first
form.email_number = name
require 'csv'
class Counter
class << self
def valid?(row)
row["TOTAL"].to_i > 0 && row["FIRST"] && row["LAST"]
end
def count_kids(files, threshold = 10)
kid_list = {}
0 ##gff-version 3
1 ##sequence-region ctg123 1 1497228
2 ctg123 . gene 1000 9000 . + . ID=gene00001;Name=EDEN
3 ctg123 . TF_binding_site 1000 1012 . + . ID=tfbs00001;Parent=gene00001
4 ctg123 . mRNA 1050 9000 . + . ID=mRNA00001;Parent=gene00001;Name=EDEN.1
5 ctg123 . mRNA 1050 9000 . + . ID=mRNA00002;Parent=gene00001;Name=EDEN.2
6 ctg123 . mRNA 1300 9000 . + . ID=mRNA00003;Parent=gene00001;Name=EDEN.3
1:
Introduction: A Musico-Logical Offering
Three-Part Invention
The MU-puzzle
Two-Part Invention
Meaning and Form in Mathematics
2:
Sonata for Unaccompanied Achilles
Figure and Ground