This file contains 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
# /etc/environment | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle" | |
JRE_HOME="/usr/lib/jvm/java-7-oracle/jre" | |
PATH="...(other path):$JAVA_HOME:$JRE_HOME" |
This file contains 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
/** | |
* actor wrapping access for browser socket | |
*/ | |
class BrowserSocket( | |
val s: WebSocketConnection, | |
val userId: Long, | |
val teamId: Long | |
) extends Actor { |
This file contains 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
::#! | |
@echo off | |
call scala -savecompiled %0 %* | |
goto :eof | |
::!# | |
/* | |
* this is a scala script for Windows! | |
*/ | |
Console.println("Hello, world!") | |
argv.toList foreach Console.println |
This file contains 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
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<configuration> | |
<jvmArgs>-Xmx1024</jvmArgs> | |
<scanIntervalSeconds>10</scanIntervalSeconds> | |
<connectors> | |
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> | |
<port>8888</port> | |
<maxIdleTime>60000</maxIdleTime> |
This file contains 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
#!/bin/bash | |
sudo apt-get install cuetools shntool flac | |
cuebreakpoints $1.cue | shnsplit -o flac $1.flac |
This file contains 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
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=1 -dLastPage=10 -sOutputFile=extractedFile.pdf originalFile.pdf |
This file contains 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
<?xml version="1.0" ?> | |
<schema name="simple" version="1.1"> | |
<types> | |
<fieldtype name="string" class="solr.StrField" /> | |
<fieldType name="uuid" class="solr.UUIDField" indexed="true" /> | |
</types> | |
<fields> |
This file contains 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
# merge several pdf in alphabetical order | |
pdftk *.pdf cat output mergedFile.pdf |
This file contains 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
#!/usr/bin/python | |
# start an http webserver serving static files from the local directory, using python | |
python -m SimpleHTTPServer 7777 & |
This file contains 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
package ner | |
import edu.stanford.nlp.ie.crf.CRFClassifier | |
import scala.collection.JavaConversions._ | |
import scala.collection.JavaConverters._ | |
import edu.stanford.nlp.ling.CoreAnnotations | |
import java.util.ArrayList | |
import java.util.HashMap | |
import java.util.Map | |
import scala.xml.XML |