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.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> |
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 formats; | |
import java.io.IOException; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.openrdf.rio.RDFFormat; | |
import org.openrdf.rio.RDFParser; |
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 happy | |
/** | |
* @author seralf | |
* | |
* small script to compute happy numbers with scala | |
* (useful as a funny benchmark for very big max numbers ;-) | |
* | |
* NOTE: try to replace | |
* numbers.map(x => x * x).sum |
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
var drama = require('drama') | |
var sys = drama('sys') | |
var Spider = function() { | |
var i = 0 | |
var me = this.self.pick('ping', 'pong', 'end') | |
return { | |
ping : function() { |
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 EasyJSON | |
import net.minidev.json.JSONValue | |
import net.minidev.json.JSONArray | |
import net.minidev.json.JSONObject | |
import scala.collection.JavaConversions._ | |
object JSON { | |
def parseJSON(s: String) = new ScalaJSON(JSONValue.parse(s)) |
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
(function($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |
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
$('.example-twitter-oss .typeahead').typeahead({ | |
name: 'twitter-oss', | |
prefetch: '../data/repos.json', | |
template: [ | |
'<p class="repo-language">{{language}}</p>', | |
'<p class="repo-name">{{name}}</p>', | |
'<p class="repo-description">{{description}}</p>' | |
].join(''), | |
engine: Hogan | |
}); |
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
$('.example-twitter-oss .typeahead').typeahead({ | |
name: 'twitter-oss', | |
prefetch: '../data/repos.json', | |
template: [ | |
'<p class="repo-language">{{language}}</p>', | |
'<p class="repo-name">{{name}}</p>', | |
'<p class="repo-description">{{description}}</p>' | |
].join(''), | |
engine: Hogan | |
}); |
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 { |