I hereby claim:
- I am Gooseus on github.
- I am gooseus (https://keybase.io/gooseus) on keybase.
- I have a public key whose fingerprint is 5ABF CE96 A75E 7683 0363 A3BA A203 FFCF 0A78 1701
To claim this, I am signing this object:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
# Adapted from http://www.stat.cmu.edu/~cshalizi/homophily-confounding/asymmetry-act.R | |
# for R version 3.4.4 (2018-03-15) | |
# Simulate the asymmetric issue. | |
asymmetry.sim <- function (num.nodes=400, | |
scale=3, | |
offset=0, | |
y.noise=0.02, | |
friend.noms=1, | |
response="linear", |
#[ | |
# AWS SDK Core Library | |
A core library for an ambitious attempt at a Nim AWS SDK. | |
]# | |
import os, times, math | |
import strutils except toLower | |
import sequtils, algorithm, tables, nimSHA2, unicode, uri | |
import httpclient, asyncdispatch, asyncfile |
# AWS Version 4 signing example | |
# EC2 API (DescribeRegions) | |
# See: http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html | |
# This version makes a GET request and passes the signature | |
# in the Authorization header. | |
import base64, httpclient, hmac, nimSHA2, os, times, strutils, httpcore | |
# ************* REQUEST VALUES ************* |
# testing async dispatch in pursuit of an efficient async s3 interface | |
import os, times, math, httpclient, asyncdispatch, asyncfile | |
let t0 = epochTime() | |
proc dt() : float = | |
round(epochTime() - t0,6) | |
const aws_url = "http://localhost:1234/" |
# testing async dispatch in pursuit of an efficient async s3 interface | |
import os, times, math, httpclient, asyncdispatch | |
let t0 = epochTime() | |
proc dt() : float = | |
round(epochTime() - t0,6) | |
const aws_url = "http://localhost:1234/" |
// Rx HTTP Server | |
// first attempt at creating a minimal reactive nodejs HTTP server | |
// | |
// has: | |
// * url/querystring parsing | |
// * body parsing | |
// * some kind of routing | |
// * some kind of error handling | |
// * minimalist request logging | |
// |
"use strict"; | |
/***** | |
Node Pair Stream | |
by Shawn Marincas | |
Consumes a CSV as a stream of item sets and outputs lines of comma-separated pairs of items that appear on the specified number of lines | |
- input : Stream input source, either a filename or defaults to STDIN for pipes | |
- threshold : Number of lines a pairs must appear on before being emitted | |
******/ |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |