Skip to content

Instantly share code, notes, and snippets.

View Planeshifter's full-sized avatar
🎯
Focusing

Philipp Burckhardt Planeshifter

🎯
Focusing
View GitHub Profile
var Twit = require('twit');
var util = require('util');
var sqlite3 = require('sqlite3').verbose();
var $ = require('jquery');
// Prototype Methods
String.prototype.double_quotes = function()
{
return this.replace(/[\\"]/g, '""');
}
@Planeshifter
Planeshifter / gist:11369385
Created April 28, 2014 11:49
Stanford NLP command line example
java -cp stanford-corenlp-3.3.1.jar:stanford-corenlp-3.3.1-models.jar:xom.jar:joda-time.jar:jollyday.jar:ejml-0.23.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file input.txt
@Planeshifter
Planeshifter / gist:11369165
Last active August 29, 2015 14:00
Stanford NLP command line
java -cp stanford-corenlp-YYYY-MM-DD.jar:stanford-corenlp-models-YYYY-MM-DD.jar:xom.jar:joda-time.jar:jollyday.jar:ejml-VV.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -filelist <YOUR LIST OF FILES>
@Planeshifter
Planeshifter / gist:9183612
Created February 24, 2014 07:57
Wrap a href around links
Find:
(?:(?:https?|ftp):\/\/|www.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]
Replace with:
<a href="$&"> $& </a>
@Planeshifter
Planeshifter / gist:9130000
Created February 21, 2014 07:03
custom pandoc command to create reveal.js presentation
pandoc -t html5 --template=template-revealjs.html --standalone --section-divs --variable theme="beige" --variable transition="concave" slides.md -o slides.html --mathjax --include-in-header=slides.css
@Planeshifter
Planeshifter / gist:8160687
Created December 28, 2013 15:34
Start MongoDB
nohup mongod --dbpath /var/lib/mongodb
@Planeshifter
Planeshifter / gist:7062695
Created October 19, 2013 23:09
Symbolic Link in Linux
sudo ln -s /home/philipp/shinyApps /var/shiny-server/www
R_LIBS_USER="~/R"
@Planeshifter
Planeshifter / instructions.txt
Last active December 25, 2015 13:49 — forked from zachbrowne/instructions.txt
Unity desktop Ubuntu
This is a method to using your Ubuntu 12.04 server without the Unity desktop on a very fast remote desktop program. This is by far the best method to managing your Ubuntu server if you like GUI.
apt-get install --no-install-recommends ubuntu-desktop
apt-get --yes purge unity unity-2d unity-2d-places unity-2d-panel unity-2d-spread
apt-get --yes purge unity-asset-pool unity-services unity-lens-* unity-scope-*
apt-get --yes purge liboverlay-scrollbar*
apt-get --yes purge appmenu-gtk appmenu-gtk3 appmenu-qt
apt-get --yes purge firefox-globalmenu thunderbird-globalmenu
apt-get --yes purge unity-2d-common unity-common
apt-get --yes purge libunity-misc4 libunity-core-5*
@Planeshifter
Planeshifter / gist:6832830
Last active December 24, 2015 17:08
Regression Analysis Homework Template
\documentclass[a4paper]{scrartcl}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{inconsolata}
\author{Philipp Burckhardt}
\title{Homework 6, Due Tuesday Oct 10}