Skip to content

Instantly share code, notes, and snippets.

View levycarneiro's full-sized avatar

Levy Carneiro Jr. levycarneiro

View GitHub Profile
/*
* TypeHelpers version 1.0
* Zoltan Hawryluk, Nov 24 2009.
* @see http://www.useragentman.com/blog/2009/11/29/how-to-detect-font-smoothing-using-javascript/
*
* Released under the MIT License. http://www.opensource.org/licenses/mit-license.php
*
* Works for
* - IE6+ (Windows),
* - Firefox 3.5+ (Windows, Mac, Linux),
function send_request ($request)
{
$server = $request['server'];
$path = $request['path'];
$verb = $request['verb'];
$content = $request['content'];
$headers = $request['headers'];
if (is_array($headers)) $additional_headers = join("\n", $headers) . "\n";
#!/usr/bin/env ruby
#
# Brute-force way to retrieve all Github's repositories at once
# Usage:
# github_repos.rb clone # will clone all the user's repositories
# github_repos.rb clone test # will just clone 6 repositories for testing purposes
# github_repos.rb pull # will update all of the user's local repositories
#
# If you have forked repositories, the original sources will be added
# as remotes with the default 'forked_from' name, and a new 'forked_from'