Skip to content

Instantly share code, notes, and snippets.

View theskumar's full-sized avatar

Saurabh Kumar theskumar

View GitHub Profile
@theskumar
theskumar / setup.sh
Last active October 18, 2018 03:11 — forked from ritesh-fueled/installDependenciesToCompileObjectiveCInUbuntu
Install and compile Objective-C in linux
function _print(){
echo `date`":" $1 "..."
}
_print "Installing gcc compiler for objective C"
sudo apt-get install gnustep gnustep-devel gobjc tree
_print "Creating a sample test project structure"
class PubSub(object):
"""
Very simple Pub/Sub pattern wrapper
using simplified Redis Pub/Sub functionality.
Usage (publisher)::
import redis
r = redis.Redis()
@theskumar
theskumar / alias_pbcopy_pbpaste.sh
Created November 3, 2012 11:59 — forked from mnem/alias_pbcopy_pbpaste.sh
pbcopy and pbpaste for linux
# Emulate pbcopy and pbpaste for copying to and from the pasteboard/clipboard
#
# via: http://whereswalden.com/2009/10/23/pbcopy-and-pbpaste-for-linux/
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
@theskumar
theskumar / API.md
Created August 29, 2012 14:28 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@theskumar
theskumar / gist:1021465
Created June 12, 2011 11:37 — forked from derek/gist:1017507
Beautified Google Doodle for 06/09/11 - Les Paul
(function() {
var g = null,
h;
try {
if (!google.doodle) google.doodle = {};
var j,
m,
o,
p,
r,