Skip to content

Instantly share code, notes, and snippets.

View val314159's full-sized avatar

val314159 val314159

View GitHub Profile
@val314159
val314159 / Makefile
Last active May 6, 2017 05:58
S-expression parser
all: test
test:
node index.js
node test.js
@val314159
val314159 / .gitignore
Last active February 21, 2017 06:54
parse
xx
yy
zz
ww
OUT
@val314159
val314159 / Makefile
Last active February 19, 2017 09:19
fidgets.js
all:
node fidgets.js
@val314159
val314159 / realpath.c
Created February 16, 2017 20:59
realpath.c
// realpath.c: display the absolute path to a file or directory.
// Adam Liss, August, 2007
// This program is provided "as-is" to the public domain, without express or
// implied warranty, for any non-profit use, provided this notice is maintained.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <limits.h>
static char *s_pMyName;
@val314159
val314159 / format_thing.py
Created February 14, 2017 01:12
format thing
#!/usr/bin/env python3
curr = prev = input()
while curr:
print "THIS", prev
curr = prev
print "LAST", prev
@val314159
val314159 / README.md
Last active February 13, 2017 18:38
git games

Git Games

cd ..
rm -fr new-thing

mkdir new-thing
cd new-thing
git init
git commit -am 'empty'
@val314159
val314159 / .README.md
Last active December 21, 2016 22:27
vl3

valist3

Roadmap

  • Parser - from a file/string, turn it into a structure

    • parser.js
      • parseCode(code_string) => basic_code
  • Printer - from a structure, tutn it into a parsable string

  • printer.js
@val314159
val314159 / EXAMPLE.md
Last active April 26, 2020 04:54
tensorflow example

Tensorflow example

cd $HOME
mkdir workspace
cd workspace
git clone http://github.com/tensorflow/tensorflow
git clone http://github.com/tensorflow/models
cd tensorflow/tensorflow/models/image/imagenet
python classify_image.py
@val314159
val314159 / Docker.makefile
Created September 1, 2016 22:43
Docker Makefile
NAME=vvm
all: clean build rund ;
clean: ; rm -f Dockerfile ; docker rm -f $(NAME) ; true
build: Dockerfile ; docker build --tag $(NAME) . && rm Dockerfile
runi: ; docker run -it --name $(NAME) $(NAME)
rund: ; docker run -d --name $(NAME) $(NAME)
exec: ; docker exec -it $(NAME) /bin/bash -c "TERM=$(TERM) exec bash"
ps: ; docker ps
Dockerfile: Makefile ; echo "$$DOCKERFILE" >Dockerfile
######################################## ######################################