Skip to content

Instantly share code, notes, and snippets.

View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
imports =
[ # Include the results of the hardware scan.
View output.txt
Last login: Wed Aug 14 10:38:51 on ttys027
korCZis-452069:~ korczis$ cd dev
korCZis-452069:dev korczis$ cd tmp
korCZis-452069:tmp korczis$ git clone
fatal: destination path 'nest-egg-be' already exists and is not an empty directory.
korCZis-452069:tmp korczis$ rm -rf ./*
korCZis-452069:tmp korczis$ git clone
Cloning into 'nest-egg-be'...
remote: Enumerating objects: 1505, done.
remote: Counting objects: 100% (1505/1505), done.

Keybase proof

I hereby claim:

  • I am korczis on github.
  • I am korczis ( on keybase.
  • I have a public key ASAADjKlRI_2kW2kkTV4PWWYVEbsNdfPdUw-1S5PU3Ko7Ao

To claim this, I am signing this object:

View test.js
function add(a, b) {
return a + b
View gist:20561d3c49522eab2b689185b425e4ae
# download
# unzip and start
cd elasticsearch-0.20.4
# remove data in case you have defined some analyzers in the past (e.g. stop/start)
rm -rf data/
pub fn inode_get_project(inode: u64) -> u16 {
(inode >> 48) as u16
pub fn inode_get_category(inode: u64) -> u8 {
((inode >> 40) & 0xff) as u8
pub fn inode_get_item(inode: u64) -> u32 {
((inode >> 8) & 0xffffffff) as u32
korczis / triangulate-topojson.js
Last active May 8, 2016
Triangulate Topojson ( => Geojson) using earcut.js
View triangulate-topojson.js
import earcut from 'earcut';
import topojson from 'topojson';
import math from 'mathjs';
const triangulateTopojson = (res) => {
const totalStart =;
const key = Object.keys(res.objects)[0];
let start =;
const geojson = topojson.mesh(res, res.objects[key]);
korczis / deferred-compute.html
Created May 2, 2016
Example of Deferred Calculation
View deferred-compute.html
<script src=""></script>
<h1>Deferred Calculation</h1>
<div id="results" style="background-color: #FF00FF"></div>
korczis /
Last active Jan 17, 2016
Card Trick - 673 King Street - Card Order
# the IP(s) on which your node server is running. I chose port 8080.
upstream app_mapoffacts {
server weight=1 fail_timeout=60s;
# the nginx server instance
server {
access_log /var/log/nginx/;