Skip to content

Instantly share code, notes, and snippets.

View arunenigma's full-sized avatar

Shan arunenigma

  • Silicon Valley
View GitHub Profile
@arunenigma
arunenigma / minted.txt
Created November 6, 2013 03:05
LaTex minted install and compiling
port installed pygments (didn't help)
easy-install pygments
\usepackage{lmodern}% http://ctan.org/pkg/lm
\begin{minted}[fontsize=\tiny]{java}
private int[] usingDBScan(String[] proteins, int eps, int min_pts) {
int cluster = 0;
boolean[] visited = new boolean[proteins.length];
int[] prot_clusters = new int[proteins.length];
for(int i = 0; i < proteins.length; i++) {
@arunenigma
arunenigma / javaVspython.txt
Created October 25, 2013 13:03
Java Vs Python Comparison
http://www.linkedin.com/groupItem?view=&srchtype=discussedNews&gid=25827&item=5796513808700682243&type=member&trk=eml-anet_dig-b-pop_ttl-hdp&fromEmail=&ut=0tdd1di7nBERY1
@arunenigma
arunenigma / python_win7_setup.txt
Created September 19, 2013 19:15
Setting Python env for Python 27 in windows 7
set PYTHONHOME=c:\Python27
set PYTHONPATH=c:\Python27\Lib
set PATH=%PYTHONHOME%;%PATH%
@arunenigma
arunenigma / unix.txt
Created September 11, 2013 13:31
Unix Stuff
http://catcode.com/teachmod/
@arunenigma
arunenigma / papers.txt
Created September 6, 2013 14:36
Research Links - Paper Search
http://theadvisor.osu.edu/scholar_ris.php
@arunenigma
arunenigma / visualization.txt
Created August 16, 2013 02:42
Visualization Tools
http://techslides.com/over-1000-d3-js-examples-and-demos/
@arunenigma
arunenigma / multi_threading_processing.py
Created August 6, 2013 18:18
Multithreading Vs Multiprocessing in Python
from random import randrange
import math
import threading
import multiprocessing
from Queue import Queue
from functools import wraps
from time import time
def timed(f):
@arunenigma
arunenigma / hacks_links_sw.txt
Created August 6, 2013 14:07
Hack Links and Softwares
@arunenigma
arunenigma / private_methods.py
Last active December 20, 2015 10:31
Accessing <<Private Methods>> and preventing method overriding
class A(object):
def __init__(self):
self.__a()
def __a(self):
print 'A.a'
class B(A):
def __init__(self):
super(B, self).__init__()
@arunenigma
arunenigma / py_snippets.txt
Last active December 20, 2015 10:20
Python Snippets
using __str__()
def __str__(self):
return
adding this method faciliates easy printing of class instance objects
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
flattening a list of lists