a list of fundamentals of Erlang extracted from LYSE.
help().
- ctrl+g --> h
a list of fundamentals of Erlang extracted from LYSE.
help().
a list of OCaml complexities extracted from Real World OCaml
let array = [| "this";"is";"a";"array"; |];;
(* val array : string array = [|"this"; "is"; "a"; "array"|] *)
(** accessing a value *)
array.(2);;
import random | |
def uniform_random_from_stream(stream): | |
""" Returns a random number from an enumerable with uniform probability | |
by using a "reservoir sampling" algorithm """ | |
reservoir = [] | |
sample_count = 1 | |
for index, item in enumerate(stream): | |
if index < sample_count: |
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/url" | |
"github.com/chihaya/bencode" |
I hereby claim:
To claim this, I am signing this object:
# vim:ft=dockerfile | |
FROM phusion/baseimage:latest | |
# Install the dependencies. | |
# Change the comment on the line below to bust the cache and refresh the apt-cache. | |
RUN apt-get update # 24JUN2015 |
package main | |
import ( | |
"log" | |
"time" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" | |
pb "github.com/jzelinskie/grpc/simple" |
Delivered-To: [email protected] | |
Received: by 10.237.52.230 with SMTP id x93csp1047052qtd; | |
Mon, 14 Nov 2016 12:13:31 -0800 (PST) | |
X-Received: by 10.200.56.253 with SMTP id g58mr8090851qtc.201.1479154411609; | |
Mon, 14 Nov 2016 12:13:31 -0800 (PST) | |
Return-Path: <[email protected]> | |
Received: from newmail.tetrasec.net (mail.tetrasec.net. [74.117.189.117]) | |
by mx.google.com with ESMTP id s23si16209759qka.36.2016.11.14.12.13.31; | |
Mon, 14 Nov 2016 12:13:31 -0800 (PST) | |
Received-SPF: neutral (google.com: 74.117.189.117 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=74.117.189.117; |
package main | |
import "fmt" | |
func SuperMario64RNG(input uint16) uint16 { | |
if input == 0x560A { | |
input = 0 | |
} | |
var s0 uint16 = uint16(uint8(input) << 8) | |
s0 = s0 ^ input |
-- Refer to manual: https://knot-resolver.readthedocs.io/en/latest/daemon.html#configuration | |
-- Listen on all interfaces (localhost would not work in Docker) | |
net.listen('0.0.0.0') | |
net.listen('0.0.0.0', 853, {tls=true}) | |
-- Auto-maintain root TA | |
trust_anchors.file = '/data/root.keys' | |
-- Load Useful modules |