Skip to content

Instantly share code, notes, and snippets.

View creepone's full-sized avatar

Tomas Vana creepone

  • Vienna, Austria
View GitHub Profile
@creepone
creepone / App.config
Last active August 29, 2015 14:27
Remote Deathwatch - simplest example where fast restart of one client corrupts the other one.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="RemoteSystem" value="akka.tcp://Test@127.0.0.1:58411" />
this._inputChangeSignal()
.merge(this._disableTriggerSignal())
.merge(Rx.Observable.return()) // start with the initial search immediately
.debounce(500)
.flatMapLatest(function () {
self.$el.find(".results").hide();
self.$el.find(".pulse").show();
self._populateModel();
return self._getCounts();
})
@creepone
creepone / gist:8579969
Created January 23, 2014 15:02
Timer using Opera's Growlit plugin
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript">
$(function() {
var growl = document.getElementById('plugin').GrowlIt('growlit'); // GrowlIt('password')
var counter, lastTimeout;
parseTime();
@creepone
creepone / gist:5443741
Created April 23, 2013 13:53
some basic neo4j access from node
var neo4j = require('neo4j');
var db = new neo4j.GraphDatabase('http://localhost:7474');
// an example of input
var data = [{"sentence":"Jetzt kann ich es testen.","words":[{"text":"Jetzt","baseForm":"jetzt","occurences":[{"start":0,"length":5}]},{"text":"kann","baseForm":"könenn","occurences":[{"start":6,"length":4}]},{"text":"ich","baseForm":"ich","occurences":[{"start":11,"length":3}]},{"text":"es","baseForm":"es","occurences":[{"start":15,"length":2}]},{"text":"testen","baseForm":"testen","occurences":[{"start":18,"length":6}]},{"text":".","baseForm":"","occurences":[{"start":24,"length":1}]}],"language":"de"},{"sentence":"Now I can test it.","words":[{"text":"Now","baseForm":"now","occurences":[{"start":0,"length":3}]},{"text":"I","baseForm":"I","occurences":[{"start":4,"length":1}]},{"text":"can","baseForm":"can","occurences":[{"start":6,"length":3}]},{"text":"test","baseForm":"test","occurences":[{"start":10,"length":4}]},{"text":"it","baseForm":"it","occurences":[{"start":15,"length":2}]},{"text":"."
@creepone
creepone / Links
Last active December 14, 2015 19:08
@creepone
creepone / gist:5119459
Last active December 14, 2015 16:59
Diff adapted for conservative merge
// Copyright (c) 2006, 2008 Tony Garnock-Jones <tonyg@lshift.net>
// Copyright (c) 2006, 2008 LShift Ltd. <query@lshift.net>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions: