Skip to content

Instantly share code, notes, and snippets.

View ChrisRicca's full-sized avatar

Chris Ricca ChrisRicca

View GitHub Profile
@ChrisRicca
ChrisRicca / twitter.m
Created February 21, 2014 21:46 — forked from vhbit/twitter.m
- (BOOL)openTwitterClientForUserName:(NSString*)userName {
NSArray *urls = [NSArray arrayWithObjects:
@"twitter:@{username}", // Twitter
@"tweetbot:///user_profile/{username}", // TweetBot
@"echofon:///user_timeline?{username}", // Echofon
@"twit:///user?screen_name={username}", // Twittelator Pro
@"x-seesmic://twitter_profile?twitter_screen_name={username}", // Seesmic
@"x-birdfeed://user?screen_name={username}", // Birdfeed
@"tweetings:///user?screen_name={username}", // Tweetings
@"simplytweet:?link=http://twitter.com/{username}", // SimplyTweet
@ChrisRicca
ChrisRicca / node-js-demo-proxy.js
Created May 23, 2010 04:41
A simple demo-service that proxies Google. Useful for grokking node.js concurrency & timing.
sys = require('sys'),
http = require('http');
request_count = 1;
http.createServer(function (req, res) {
var this_count = "(" + request_count++ + ")";
sys.puts(this_count + " REQUESTED! " + req.url);
@ChrisRicca
ChrisRicca / Site Search Form
Created February 12, 2010 15:50
Quick and dirty way to add search to a site.
<form action="http://www.google.com/search" method="get">
<div>
<label for="q">Search</label>
<input type="text" name="q" value="" id="q">
<input type="hidden" value="yourdomain.com" name="sitesearch">
</div>
</form>
@ChrisRicca
ChrisRicca / fetch_original_dropio_files.rb
Created November 7, 2009 06:19
This is a script for downloading original files from premium (upgraded or manager) drops. Requires a few gems and curl (might need SSL libs installed)
#!/usr/bin/env ruby
# this will let you download the original files
# from a premium dropio drop
# run it in the command line with "ruby fetch_original_dropio_files.rb"
require 'rubygems'
require 'fileutils'
require 'httparty'
#!/usr/bin/ruby
# vim: fileencoding=utf-8
require 'rubygems'
require 'zipruby'
require 'openssl'
require 'digest/sha1'
require 'optparse'
require 'fileutils'
require 'find'
Close Window
/* HTTP Host: static.ak.fbcdn.net */
/* Generated: September 8th 2009 11:13:34 PM PDT */
/* Machine: 10.16.140.103 */
/* Source: Global Cache */
/* Location: js/connect.js.pkg.php h:5s5y4rmx */
/* Locale: nu_ll */
/* Path: js/connect.js.pkg.php */
if(!window.FB) {
FB = {