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
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import java.sql.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
public abstract class DAO { | |
public int create(JsonObject json) | |
throws SQLException, ClassNotFoundException { |
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
var casper = require('casper').create({ | |
viewportSize: { | |
width: 1024, | |
height: 768 | |
} | |
}); | |
var seen = []; | |
function getLinks() { |
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
//2012, reindex.dk . Released under the MIT license | |
var PORT = 7798; | |
var sys = require('util'); | |
var fs = require('fs'); | |
var net = require('net'); | |
var querystring = require('querystring'); | |
var http = require('http'); | |
var Iconv = require('iconv').Iconv; | |
var logLocation = process.argv[2]; |
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
<?php | |
//2012, reindex.dk. Released under the MIT license. | |
class RxSIP { | |
public static function dispatch ($commandString) { | |
global $PORT; | |
$response = ""; | |
$cmd = substr($commandString, 0, 2); | |
$par = substr($commandString, 2, strlen($commandString)); | |
switch ($cmd) { |
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
#! /bin/bash | |
set -e | |
RX=/home/jacob/project/reindex | |
LOG=$RX/RxSIP/logs/rxsip.log | |
PATH=/opt/node/bin:/bin/:/usr/bin:/usr/sbin/:/sbin | |
DAEMON=$RX/RxSIP/daemon/sip.js | |
case "$1" in |
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
var fs = require('fs'); | |
var TimeLog = function (options) { | |
function appendToFile (projectId) { | |
var now = new Date(); | |
var line = now.getHours() +":" + now.getMinutes() + " " + projectId +"\r\n"; | |
fs.appendFile("data.txt", line, function (err) { | |
if (err) { | |
console.log(err); |
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
#!/opt/node/bin/node | |
var sys = require('util'); | |
var net = require('net'); | |
var querystring = require('querystring'); | |
var http = require('http'); | |
var Iconv = require('iconv').Iconv; | |
var PORT = process.argv[2]; | |
if (PORT == null || PORT == "") { |
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
colorscheme darkblue | |
execute pathogen#infect() | |
autocmd vimenter * NERDTree | |
let g:syntastic_enable_signs=1 | |
let g:syntastic_auto_loc=1 | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | |
set nocompatible |
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
var map = new L.Map('map', { }); | |
var skaermkort = L.tileLayer.wms("http://kortforsyningen.kms.dk/service?SERVICENAME=topo_skaermkort", { | |
LAYERS : 'dtk_skaermkort_daempet', | |
attribution: "Geodatastyrelsen", | |
ticket : kfTicket | |
}).addTo(map); | |
var postdistrikt = L.tileLayer.wms("http://kortforsyningen.kms.dk/service?SERVICENAME=dagi", { | |
service : 'WMS', | |
layers : 'postdistrikt', |
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
var search ="http://dawa.aws.dk/adresser"; | |
$( "#address" ).autocomplete({ | |
source: function( request, response ) { | |
$.ajax({ | |
url : search, | |
dataType: "jsonp", | |
data: { | |
q: $('#address').val() + "*", | |
format: "geojson" | |
}, |