LOSP! - it's cool.
This file contains hidden or 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) |
This file contains hidden or 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
;; elisp macro for Ctrl-Z makes | |
(defun make () | |
(interactive) | |
(compile "makex")) | |
(global-set-key (kbd "C-z") 'make) |
This file contains hidden or 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 python | |
import os, sys | |
while 1: | |
if 'Makefile' in os.listdir('.'): | |
os.execlp('make', *sys.argv) | |
elif os.path.realpath('.') == '/': | |
raise SystemExit("Error: '%s' Not Found" % Makefile) | |
os.chdir('..') |
This file contains hidden or 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
DOPTS=-v "`pwd`:/src" --name em trzeci/emscripten | |
EMCC=docker exec em emcc -Os | |
# -s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap","ccall"]' | |
all: clean main0.html twelve.bc eleven.js | |
node main1.js | |
main0.html: main0.bc eleven.bc twelve.bc | |
$(EMCC) $? -o $@ -s [email protected] | |
main1.html: main1.bc eleven.bc twelve.bc | |
$(EMCC) $? -o $@ -s EXPORTED_FUNCTIONS=1main0.json | |
%.js: %.bc ; $(EMCC) $? -o $@ -s EXPORTED_FUNCTIONS=@$*.json |
This file contains hidden or 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
*.pyc | |
*.yky | |
*~ | |
.ssh | |
.gitignore | |
.gitconfig | |
.ve | |
.ve2 | |
.ve3 |
This file contains hidden or 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
/* | |
cc -o usleep usleep.c && cp usleep /usr/local/bin | |
*/ | |
#include <unistd.h> | |
#include <stdlib.h> | |
int main(int c,char*v[]){ | |
usleep(atoi(v[1])); | |
} |
This file contains hidden or 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: | |
./ws.py | |
install: | |
virtualenv .ve | |
.ve/bin/pip install -r requirements.txt | |
mkdir static | |
echo index >static/index.html | |
clean: |
This file contains hidden or 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
.ve3 | |
ve | |
account | |
password | |
dd | |
tx_hash | |
This file contains hidden or 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 https://gist.github.com/val314159/d2695398dc8745fc7ef847917a2f8738 | |
# See http://b.ccl.io/2017/11/22/quickest-start-to-ethereum/ | |
all: | |
@echo "# In seperate windows," | |
@echo "# Run the following:" | |
@echo "make testrpc" | |
@echo "make serve-webpack-dev" | |
@echo | |
@echo "# Other good targets: " | |
@echo |