Public Gists by jubishop

Gravatar
Thu Sep 10 17:09:27 -0700 2009
1
2
3
Automate Functional Tests of Your Connect Implementation
 
Here on the Facebook Platform Engineering team we strive to keep Connect fast and stable and to help our developers ensure their implementations are working, bug free.
Gravatar
Tue Aug 18 17:35:50 -0700 2009
1
2
3
module SlowWatir
  IndestructibleMethods = ['__id__', '__send__']
  SleepTime = 0.5
Gravatar
Wed Jul 08 11:35:01 -0700 2009
1
http://www.facebook.com/login.php?api_key=API_KEY_HERE&next=http://www.facebook.com/connect/login_success.html&return_session=true&req_perms=offline_access,publish_stream,read_stream,email,create_event,rsvp_event,sms,status_update,photo_upload,video_upload,create_note,share_item
Gravatar
Tue Jul 07 17:39:28 -0700 2009
1
http://www.jubishop.devrs006.facebook.com/login.php?api_key=API_KEY_HERE&next=http://www.jubishop.devrs006.facebook.com/connect/login_success.html&return_session=true&req_perms=offline_access,publish_stream,read_stream,email,create_event,rsvp_event,sms,status_update,photo_upload,video_upload,create_note,share_item
Gravatar
Tue Jul 07 17:37:17 -0700 2009
1
http://www.jubishop.devrs006.facebook.com/login.php?api_key=API_KEY_HERE&next=http://www.jubishop.devrs006.facebook.com/connect/login_success.html&return_session=true&req_perms=offline_access,publish_stream,read_stream,email,create_event,rsvp_event,sms,status_update,photo_upload,video_upload,create_note,share_item
Gravatar
Tue Jul 07 17:28:32 -0700 2009
1
2
3
require 'rubygems'
require 'digest/md5'
require 'json'
Gravatar
Tue Jun 30 00:16:25 -0700 2009
1
2
3
tell application "iTunes"
copy (convert current track) to newTrack
set newLocation to (location of track 1 of current playlist)
Gravatar
Mon May 11 19:43:20 -0700 2009
1
2
3
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                applicationComplete="applicationComplete(event)" >
  <mx:Script><![CDATA[
Gravatar
Mon May 11 19:39:16 -0700 2009
1
2
3
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                applicationComplete="applicationComplete(event)" >
  <mx:Script><![CDATA[
Gravatar
Mon Apr 27 21:22:08 -0700 2009
1
2
3
require 'net/http'
require 'uri'
require 'digest/md5'
Gravatar
Sat Apr 11 02:19:17 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
Gravatar
Sat Apr 11 02:18:59 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
puts STDIN.readlines.map{|line|
Gravatar
Sat Apr 11 02:18:32 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
lines = STDIN.readlines.map{|line| line.strip }
Gravatar
Sat Apr 11 02:17:48 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Wed Mar 18 14:46:55 -0700 2009
1
2
3
<div id="all"></div>
 
<script><!--
Gravatar
Sun Mar 08 09:30:49 -0700 2009
1
2
3
require 'rubygems'
require 'hpricot'
require 'open-uri'
Gravatar
Thu Feb 19 09:48:37 -0800 2009
1
2
3
raise 'Usage: ruby blist.rb "[H]H:MM AM|PM" "[H]H:MM AM|PM"' unless ARGV.length == 2
 
def parse_date(date_str)
Gravatar
Wed Feb 11 19:15:21 -0800 2009
1
2
3
package fbconnect {
  import flash.external.ExternalInterface;
  import flash.events.EventDispatcher;
Gravatar
Tue Jan 27 15:51:48 -0800 2009
1
2
3
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  xmlns:facebook="com.pbking.facebook.*"
Gravatar
Wed Jan 07 11:22:40 -0800 2009
1
2
3
class RiskProbability
  @@odds = {
    [1,1] => {[1,0] => 41.67, [0,1] => 58.33},