Skip to content

Instantly share code, notes, and snippets.

View alagu's full-sized avatar

Alagu alagu

View GitHub Profile
[
{
"author": "First Author",
"content": "First Quote."
},
{
"author": "Second Author",
"content": "Second Quote."
}
]
#! /usr/bin/ruby
##
# == remember:
# * insert your login and password at Line 100, and save this file.
# * of couse, be very carefull if you send this to a friend... REMOVE your credentials first!
# * if you are using Google Hosted for your Domain (Google Apps), your_login is something like: [email protected]
# * example: go = GoGmail.new($*[0], 'imap.gmail.com', 993, $*[1], '[email protected]', 'littlebird', $*[2])
#
# == usage:
@alagu
alagu / gist:1228425
Created September 20, 2011 05:37 — forked from pokeb/gist:150447
An example showing how to manage a queue with ASIHTTPRequest
//
// MyController.h
//
// Created by Ben Copsey on 20/07/2009.
// Copyright 2009 All-Seeing Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <GHUnit/GHUnit.h>
@class ASINetworkQueue;
@alagu
alagu / gist:178319
Created August 31, 2009 06:43 — forked from stammy/gist:60892
javascript:void(function(){var%20i,a,s;a=document.getElementsByTagName('link');for(i=0;i%3Ca.length;i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')%3E=0&&s.href)%20{var%20h=s.href.replace(/(&|%5C?)forceReload=\d+/,'');s.href=h+(h.indexOf('?')%3E=0?'&':'?')+'forceReload='+(new%20Date().valueOf())}}})();