Skip to content

Instantly share code, notes, and snippets.

digraph "services.notifications.lambda.user_notification.test.java.test" {
node [shape=rectangle, colorscheme=set312;];
rankdir=LR;
"internal-services.notifications.lambda.user_notification.test.java.test" [style=filled, fillcolor=1];
"internal-.junit_library" [style=filled, fillcolor=2];
"junit-junit-4.12" [style=filled, fillcolor=3, shape=ellipse];
"internal-.junit_library" -> "junit-junit-4.12" [style=dashed];
"internal-services.notifications.lambda.user_notification.test.java.test" -> "internal-.junit_library";
"internal-3rdparty.java.com.fasterxml.jackson-databind" [style=filled, fillcolor=2];
"com.fasterxml.jackson.core-jackson-databind-2.9.6" [style=filled, fillcolor=3, shape=ellipse];
@a34729t
a34729t / README.md
Created November 15, 2012 04:03
Installing python modules on osx!

Installing Python Modules on OSX (Or why Python can't be like node.js?)

REMEMBER to install to the correct version version of python.

Pull module from Github + easy_install

git clone [module github repo] cd [module folder] sudo ARCHFLAGS='-arch i386 -arch x86_64' easy_install ./

@a34729t
a34729t / RunStanfordParser.java
Created April 30, 2012 21:15
Programmatic interaction with Stanford Parser- using built in tokenization and using an external tokenizer
package foo;
import edu.stanford.nlp.fsm.ExactGrammarCompactor;
import edu.stanford.nlp.io.IOUtils;
import edu.stanford.nlp.io.NumberRangeFileFilter;
import edu.stanford.nlp.io.NumberRangesFileFilter;
import edu.stanford.nlp.ling.*;
import edu.stanford.nlp.objectbank.TokenizerFactory;
import edu.stanford.nlp.parser.ViterbiParser;
import edu.stanford.nlp.parser.KBestViterbiParser;
@a34729t
a34729t / RunMallet.java
Created April 30, 2012 21:13
Example of programmatic interaction with java
package foo;
import java.io.BufferedInputStream;
public class RunMallet {
public static void main(String[] args) throws Exception {
// create the command line parser
CommandLineParser parser = new PosixParser();