This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require('web3'); | |
let { API_URL, FROM, AMT } = process.env; | |
if(FROM[0]=='"') | |
FROM = FROM.substr(1,FROM.length-2); | |
const URL = API_URL || "ws://localhost:8546"; | |
const web3 = new Web3(URL); | |
web3.eth.accounts.wallet.create(3, '54674321§3456764321§345674321§3453647544±±±§±±±!!!43534534534534'); | |
async function send2(from, address, amt) { | |
const nonce = await web3.eth.getTransactionCount(from, 'latest'); // nonce starts counting from 0 | |
const transaction = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, sys | |
from sys import argv | |
from os import system | |
prog = argv.pop(0) | |
frst = argv.pop(0) | |
last = argv.pop() | |
system('cat '+frst) | |
for fn in argv: | |
system('cat '+fn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: ; sbcl --script test.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
open three.js.shader.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
combobulate: | |
sbcl --script $*.lisp | |
ecl -load $*.lisp -eval '(quit)' | |
ccl64 --load $*.lisp --eval '(quit)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#| -*- lisp -*- | |
exec sbcl --script $0 $* # |# | |
;;≈ç√Ωπøπøˆøˆˆ©ƒ√∂ | |
(set-dispatch-macro-character | |
#\# #\/ (lambda(stream subchar arg) | |
(declare (ignore subchar arg)) | |
(list (quote quote) (read stream t nil t)))) | |
(defun concat(&rest r) (apply #'concatenate #/string r)) | |
(import #/(sb-impl::quasiquote sb-impl::unquote-splice | |
sb-impl::unquote-nsplice sb-impl::unquote)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM buildpack-deps:bionic | |
RUN apt-get -y update && apt-get -y upgrade && apt-get -y install apt-utils | |
SHELL ["/bin/bash", "-c"] | |
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 | |
RUN mkdir -p /root/emscripten/ | |
COPY emscripten /root/emscripten/ | |
RUN cd /root/ \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROG=hi | |
all: test | |
test: $(PROG) ; ./$(PROG) | |
clean: ; rm -fr *.{o,a,so} *~ $(PROG) | |
hi: hi.o | |
$(LD) $(LDFLAGS) $^ -o $@ | |
hi.o: hi.c | |
$(CC) $(CFLAGS) -c $^ -o $@ |
NewerOlder