Skip to content

Instantly share code, notes, and snippets.

View azarichnyi's full-sized avatar
:octocat:
test && commit || revert

Andrii Zarichnyi azarichnyi

:octocat:
test && commit || revert
  • New Work SE
  • Hamburg, Germany
  • X @10m4x
View GitHub Profile
@azarichnyi
azarichnyi / LICENSE.txt
Created May 18, 2016 15:44 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@azarichnyi
azarichnyi / 30-income-calculon.pl
Created September 25, 2015 06:50 — forked from avar/30-income-calculon.pl
Calculate your income in The Netherlands with and without a 30% ruling.
# To check if this is up-to-date with the tax rates go to
# http://www.expatax.nl/tax-rates-2015.php and see if there's anything
# newer there.
#
# I make no guarantees that any of this is correct. I calculated this
# at the time and have been updating it when new tax rates come along
# because people keep finding this useful.
#
# There's also an interactive JS version of this created by
# @stevermeister at
/**
* APNS test client
*/
var net = require('net');
var HOST = '127.0.0.1';
var PORT = 7777;
var TOKEN_LENGTH = 64;
var NUM_PACKETS = 5;
@azarichnyi
azarichnyi / game.js
Created September 27, 2012 09:54 — forked from alexbeletsky/game.js
Game of Life in 50 lines and 20 specs
// http://en.wikipedia.org/wiki/Conway's_Game_of_Life
var Game = {
init: function (options) {
this.grid = new Grid(options);
},
putCell: function (x, y, state) {
this.grid.putCell(x, y, state);
// TestNG RunningTest
// see http://groovy.codehaus.org/Using+TestNG+with+Groovy
// http://groovy.codehaus.org/Using+Testing+Frameworks+with+Groovy#UsingTestingFrameworkswithGroovy-AnItemStorerExample
// http://d.hatena.ne.jp/irof/20111220/p1
//
// assert
// http://d.hatena.ne.jp/uehaj/20100606/1275826776
// http://d.hatena.ne.jp/nobeans/20100317/1268787645
// http://groovy-almanac.org/catch-assertion-exceptions-in-groovy/
//