Skip to content

Instantly share code, notes, and snippets.

View gasi's full-sized avatar

Daniel Gasienica gasi

View GitHub Profile
@gasi
gasi / MultitouchController.as
Created June 9, 2011 08:26
OpenZoom Multitouch IViewportController
// Author: http://getsatisfaction.com/people/natxopedreira
// Source: http://getsatisfaction.com/openzoom/topics/implementing_gesture_controller
package org.openzoom.flash.viewport.controllers
{
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
@gasi
gasi / titleCaps.js
Created May 4, 2011 06:16
Title Caps (JavaScript)
/*
* Title Caps
*
* Ported to JavaScript By John Resig - http://ejohn.org/ - 21 May 2008
* Original by John Gruber - http://daringfireball.net/ - 10 May 2008
* License: http://www.opensource.org/licenses/mit-license.php
*/
(function(){
var small = "(a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v[.]?|via|vs[.]?)";
@gasi
gasi / README.md
Created April 5, 2011 04:03
Node & npm Installation Instructions

Node

Installation

git clone https://github.com/joyent/node.git
cd node/
git checkout v0.4.5 # or any other version you'd like
./configure --debug
make install
@gasi
gasi / itunes-tagger.py
Created October 17, 2010 18:52
Add IMDb metadata to mp4 files.
We couldn’t find that file to show.
// cURL: http://php.net/manual/en/book.curl.php
// cURL Options: http://www.php.net/manual/en/function.curl-setopt.php
// @param $url URL of the request, e.g. https://www.sandbox.paypal.com/cgi-bin/webscr
// @param $data URL encoded request data as array, e.g. $data = array('cmd' => '_notify-validate');
function urlopen($url, $data)
{
$curl_handler = curl_init();
$options = array(CURLOPT_URL => $url,
CURLOPT_FAILONERROR => true,
CURLOPT_RETURNTRANSFER => true,