Skip to content

Instantly share code, notes, and snippets.

View tchap's full-sized avatar

Ondřej Kupka tchap

View GitHub Profile
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"math/rand"
"regexp"
"testing"
"time"
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"math/rand"
"regexp"
"testing"
"time"
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"math/rand"
"regexp"
"testing"
"time"
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"math/rand"
"regexp"
"testing"
"time"
@tchap
tchap / steemd_rpc_example.go
Last active August 22, 2016 16:44
Accessing steemd RPC programatically using Golang
package main
import (
"flag"
"fmt"
"log"
"net/rpc/jsonrpc"
"time"
"golang.org/x/net/websocket"
@tchap
tchap / cartProd.js
Last active December 8, 2015 09:45
Compute cartesian product in JavaScript (ES6).
const cartProd = (...lists) => {
if (lists.length < 2) {
throw new Error('cartProd: need at least 2 lists as arguments');
}
const head = (list) => list[0];
const tail = (list) => list.slice(1);
const prepend = (head, tail) => [head, ...tail];
const push = (list, item) => {
list = list || [];
package main
import (
"bufio"
"errors"
"fmt"
"io"
"os"
"strconv"
import csv
import json
import os
import subprocess
import sys
RB_SERVER = 'https://review.salsitasoft.com'
repository = sys.argv[1]
Královskou korunu beru si na sebe,
stojím tu v srdci a vzhlížím do nebe,
stojím tu v srdci se všemi co tu jsou,
jednou si navzájem všichni pomohou.
http://acordes.lacuerda.net/mercedes_sosa/todo_cambia.shtml
Page 53