I hereby claim:
- I am coolcodr on github.
- I am matthewlai (https://keybase.io/matthewlai) on keybase.
- I have a public key whose fingerprint is 8196 C41F 6EDC 3F52 8A67 7250 A4F6 0397 FAA8 2EFE
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/bash | |
# | |
# author: orefalo | |
hookname=`basename $0` | |
FILE=`mktemp` | |
trap 'rm -f $FILE' EXIT | |
cat - > $FILE |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import urllib, urllib2 | |
import re | |
import os | |
import subprocess | |
from dict2xml2 import dict2xml2 | |
from datetime import datetime |
angular.module 'myModule' | |
.service 'MyService', class | |
constructor: ($log) -> | |
@doSomething = (str) -> | |
$log.info str |
var createUpdateFunc = function() { | |
var timer = null; | |
var updating = false; | |
repeat = function(func, interval) { | |
timer = setTimeout(func, interval); | |
} | |
stopRepeat = function() { | |
if(timer) clearTimeout(timer); |
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import PyRSS2Gen | |
from datetime import datetime | |
import urllib | |
class Podcast: | |
def __init__(self, dir_name): |
#!/bin/sh | |
# | |
# Shell script that configures mate-terminal to use solarized theme | |
# colors. (I simply replaced in the original script every occurence | |
# of "gnome-terminal" with "mate-terminal" and every occurcence | |
# of "gconftool-2" with "mateconftool-2"; reverse these changes if | |
# using gnome and rename the script to its original name: "solarize" | |
# | |
# Written for Ubuntu 11.10, untested on anything else. (actually tested | |
# also on ArchLinux, seems to work fine here, tweak it to your needs :) |
from nose.tools import nottest, istest | |
class assume(object): | |
def __init__(self, bool_condition): | |
self.bool_condition = bool_condition | |
def __call__(self, test_func): | |
if not self.bool_condition: | |
return nottest(test_func) | |
else: |
#! /usr/bin/env python | |
""" | |
Script to copy all bookmarks from Read It Later to Instapaper. | |
See also http://readitlaterlist.com/api/docs/#get | |
and http://www.instapaper.com/api/simple | |
""" | |
import urllib, urllib2, json |