Skip to content

Instantly share code, notes, and snippets.

Karthik Raman karthikraman

Block or report user

Report or block karthikraman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am karthikraman on github.
  • I am karthikraman ( on keybase.
  • I have a public key whose fingerprint is 65C2 1398 CACA 6508 ED10 0D6B 1472 EF9C 1015 F486

To claim this, I am signing this object:

import networkx as nx
import matplotlib.pyplot as plt
from math import log
def hypercube_graph(n):
"""Create a hypercube graph of size n
(int) -> Graph
H = nx.Graph()
for i in range(2**n):
for j in range(n):
karthikraman / starred_item.tex
Created Oct 17, 2015
starred items in enumerate
View starred_item.tex
% From
\expandafter\let\expandafter\originallabel\csname labelenum\romannumeral\@enumdepth\endcsname
\expandafter\def\csname labelenum\romannumeral\@enumdepth\expandafter\endcsname\expandafter{%
\expandafter\let\csname labelenum\romannumeral\@enumdepth\endcsname\originallabel
karthikraman /
Created Aug 10, 2015
Transliterator for ITRANS, HarvardKyoto
""" Transliterate texts between unicode and standard transliteration schemes.
Transliterate texts between non-latin scripts and commonly-used latin
transliteration schemes. Uses standard Unicode character blocks --
e.g. DEVANAGARI U+0900 ... U+097F -- and transliteration schemes --
e.g. the IAST convention for transliteration of Sanskrit to latin-with-dots.
The following character blocks and transliteration schemes are included:
View beamer-columns.sublime-snippet
View Beamer-fragile-frame.sublime-snippet
<description>Beamer frame</description>
View Beamer-block.sublime-snippet
\item ${2:items}.
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
karthikraman / Beamer-python.sublime-snippet
Last active Oct 19, 2015
Snippet TeX python code block
View Beamer-python.sublime-snippet
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
karthikraman /
Last active Aug 29, 2015
Bash: PDF page extractor
#Add this to your .bashrc
function pdfpextr()
# this function uses 3 arguments:
# $1 is the first page of the range to extract
# $2 is the last page of the range to extract
# $3 is the input file
# output file will be named "inputfile_pXX-pYY.pdf"
You can’t perform that action at this time.