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 $@ |
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) |
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
;; elisp macro for Ctrl-Z makes | |
(defun make () | |
(interactive) | |
(compile "makex")) | |
(global-set-key (kbd "C-z") 'make) |
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
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 EXPORTED_FUNCTIONS=@main0.json | |
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 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 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 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
'''This script goes along the blog post | |
"Building powerful image classification models using very little data" | |
from blog.keras.io. | |
It uses data that can be downloaded at: | |
https://www.kaggle.com/c/dogs-vs-cats/data | |
In our setup, we: | |
- created a data/ folder | |
- created train/ and validation/ subfolders inside data/ | |
- created cats/ and dogs/ subfolders inside train/ and validation/ | |
- put the cat pictures index 0-999 in data/train/cats |
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: | |
./ws.py | |
install: | |
virtualenv .ve | |
.ve/bin/pip install -r requirements.txt | |
mkdir static | |
echo index >static/index.html | |
clean: |
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
.ve3 | |
ve | |
account | |
password | |
dd | |
tx_hash | |