Skip to content

Instantly share code, notes, and snippets.

View nikhgupta's full-sized avatar
🏠
Working from home

Nikhil Gupta nikhgupta

🏠
Working from home
View GitHub Profile
@nikhgupta
nikhgupta / any2pandoc.sh
Created October 1, 2012 17:24 — forked from dsanson/any2pandoc.sh
any2pandoc.sh: script that tries to convert documents thrown at it to pandoc's extended markdown
#!/bin/sh
# A shell script that tries its best to convert documents thrown at it
# to pandoc's extended markdown.
#
# Depends on:
#
# + textutil: an OS X only command line utility
# + odt2pandoc.py: a tweaked version of odt2txt.py
# + pdftohtml: a utility for converting pdf to html
@nikhgupta
nikhgupta / run_tags.rb
Created April 1, 2012 01:45 — forked from tobias/run_tags.rb
A script for generating TAGS from a git hook.
#!/usr/bin/ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git post-merge and post-commit callback.
CTAGS = '/opt/local/bin/ctags'
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.git/hooks'
@nikhgupta
nikhgupta / new-lang-code-file.php
Created March 10, 2012 01:20 — forked from RaVbaker/new-lang-code-file.php
How to create new programming language in PHP?
// This is written in pseudo language
class Foo {
def bar() {
ret "it Works!";
}
}
$f = Foo.new();
print $f.bar();