Skip to content

Instantly share code, notes, and snippets.

View bkutil's full-sized avatar

Balázs Kutil bkutil

View GitHub Profile
@bkutil
bkutil / import
Last active July 6, 2016 13:34
Import ledger transactions to local elastic search instance
#!/usr/bin/env ruby
require 'csv'
require 'elasticsearch'
require 'securerandom'
file = ARGV.shift
unless file
warn "Usage: $0 <ledger file>"
@bkutil
bkutil / test.js
Created October 7, 2016 20:45
opal #1270
/* Generated by Opal 0.10.0.dev, indentation fixed manually */
/* source: a = true ? 2 : 0 rescue 10 */
(function(Opal) {
Opal.dynamic_require_severity = "error";
var OPAL_CONFIG = { method_missing: true, arity_check: false, freezing: true, tainting: true };
var $a, self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, a = nil;
return a = (function() {
try {
(function() {
@bkutil
bkutil / app.rb
Created January 28, 2017 17:06
tiny sinatra app for testing
#!/usr/bin/env ruby
require 'sinatra'
warn Process.pid
get '/' do
'hi'
end