Put genesis.json, Dockerfile, docker-compose.yml and .env files together in the same folder. Then run the command.
docker-compose up
npx asc src/assembly/hook.ts \ | |
-O3 \ | |
--noAssert \ | |
--runtime minimal \ | |
-b build/hook.wasm \ | |
-t build/hook.wat \ | |
-d build/hook.d.ts |
var k_total = 10; // number of times the event is repeated | |
var landa = 8; // Promedian number of error expected in a given time (Landa symbol) | |
var exponential = 2.718281828; | |
var total = 0; | |
var numerator, denominator; | |
// Sumatorio de k terminos usando la formula de poisson | |
function poisson(k, landa) { |
#!/usr/bin/env python | |
import sys | |
import re | |
import datetime, time | |
import argparse | |
import nids | |
end_states = (nids.NIDS_CLOSE, nids.NIDS_TIMEOUT, nids.NIDS_RESET) |
var crypto = require('crypto') | |
, fs = require('fs') | |
// Algorithm depends on availability of OpenSSL on platform | |
// Another algorithms: 'sha1', 'md5', 'sha256', 'sha512' ... | |
var algorithm = 'sha1' | |
, shasum = crypto.createHash(algorithm) | |
// Updating shasum with file content | |
var filename = __dirname + "/anything.txt" |
# | |
# Assumes an independent box (we'll call this one "graphite") | |
# | |
# Stay up to date | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install git | |
sudo apt-get install g++ curl libssl-dev -y |
Here are a list of headless browsers that I know about:
#!/bin/bash | |
function jsonval { | |
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
echo ${temp##*|} | |
} | |
json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
prop='profile_image_url' | |
picurl=`jsonval` |