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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>vc-build-version</key><string>1W16</string> | |
<key>vc-build-revision</key><string>198959</string> | |
<key>id-validation-cert</key><string>https://identity.ess.apple.com/WebObjects/TDIdentityService.woa/wa/validationCert</string> | |
<key>id-initialize-validation</key><string>https://identity.ess.apple.com/WebObjects/TDIdentityService.woa/wa/initializeValidation</string> | |
<key>id-provision-phone-number</key><string>https://identity.ess.apple.com/WebObjects/TDIdentityService.woa/wa/provisionPhoneNumber</string> | |
<key>id-provision-ds-id</key><string>https://profile.ess.apple.com/WebObjects/VCProfileService.woa/wa/idsProvisionEmails</string> |
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
DEBUG -- : Test Load (0.2ms) SELECT "tests".* FROM "tests" ORDER BY COALESCE(updated_at DESC, created_at) ASC LIMIT 1 | |
DEBUG -- : SQLite3::SQLException: near "DESC": syntax error: SELECT "tests".* FROM "tests" ORDER BY COALESCE(updated_at DESC, created_at) ASC LIMIT 1 | |
/Users/titanous/.rvm/gems/ree-1.8.7-2011.03@fix/gems/activerecord-3.0.8/lib/active_record/connection_adapters/abstract_adapter.rb:207:in `log': SQLite3::SQLException: near "DESC": syntax error: SELECT "tests".* FROM "tests" ORDER BY COALESCE(updated_at DESC, created_at) ASC LIMIT 1 (ActiveRecord::StatementInvalid) | |
from /Users/titanous/.rvm/gems/ree-1.8.7-2011.03@fix/gems/activerecord-3.0.8/lib/active_record/connection_adapters/sqlite_adapter.rb:135:in `execute' | |
from /Users/titanous/.rvm/gems/ree-1.8.7-2011.03@fix/gems/activerecord-3.0.8/lib/active_record/connection_adapters/sqlite_adapter.rb:284:in `select' | |
from /Users/titanous/.rvm/gems/ree-1.8.7-2011.03@fix/gems/activerecord-3.0.8/lib/active_record/connection_adapters/abstract/database_ |
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
var https = require('https'); | |
https.get({ host: 'www.google.com', path: '/accounts/o8/site-xrds?hd=jadedpixel.com' }, function(res) { | |
res.on('data', function(d) { | |
console.log('chunk'); | |
}); | |
res.on('end', function() { | |
console.log('end'); | |
}); |
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 'json' | |
require 'net/http' | |
require 'uri' | |
module Bayeux | |
ENDPOINT = URI.parse('http://localhost:3000/faye') | |
def self.publish(channel, data) | |
message = {'channel' => channel, 'data' => data.to_hash} | |
Net::HTTP.post_form(ENDPOINT, :message => JSON.unparse(message)) |
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
# Long URL finder | |
# Copyright 2011 Jonathan Rudenberg | |
# Licensed under the MIT License | |
# | |
# Usage: | |
# LongURL.find('http://t.co/tssMTwK') #=> "http://fuckyeahnouns.com/Bacon" | |
require 'net/http' | |
require 'uri' |
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 | |
$KCODE = 'u' # for twitter-text | |
# gem install httparty json twitter-stream twitter-text | |
# | |
# set these environment variables: | |
# TWITTER_USER = twitter username | |
# TWITTER_PASS = twitter password | |
# TWITTER_KEYWORDS = the keywords to track, comma separated (see http://dev.twitter.com/pages/streaming_api_methods#track) | |
# CAMPFIRE_SUBDOMAIN = the subdomain of your campfire account (ex. flames if your domain is flames.campfirenow.com) |
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
133a134,136 | |
> url = re.compile("URL: (\S+)").search(msg) | |
> if url is not None: | |
> subprocess.Popen(['open', url.group(1)]) |
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 'heroku' | |
heroku = Heroku::Client.new('[email protected]', 'supersecret') | |
heroku.add_config_vars 'vanbergen.org', 'LAST_BUMP' => Time.now.strftime('%F') |
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 'active_merchant' | |
require 'test/unit' | |
class CreditCardThing < Struct.new(:number, :month, :year, :type) | |
include ActiveMerchant::Billing::CreditCardMethods | |
def valid_number? | |
self.class.valid_number?(number) | |
end |
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 'open-uri' | |
require 'nokogiri' | |
require 'active_support/time' | |
module OCTranspo | |
class GPSData | |
API_URL = 'http://octranspo.opendataottawa.ca' | |
API_KEY = 'YOUR API KEY HERE' |