This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set PYTHONHOME=c:\Python27 | |
| set PYTHONPATH=c:\Python27\Lib | |
| set PATH=%PYTHONHOME%;%PATH% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://catcode.com/teachmod/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://theadvisor.osu.edu/scholar_ris.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://techslides.com/over-1000-d3-js-examples-and-demos/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Xenu's Link Sleuth - Website Crawler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A(object): | |
| def __init__(self): | |
| self.__a() | |
| def __a(self): | |
| print 'A.a' | |
| class B(A): | |
| def __init__(self): | |
| super(B, self).__init__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using __str__() | |
| def __str__(self): | |
| return | |
| adding this method faciliates easy printing of class instance objects | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| flattening a list of lists |