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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<!-- CSS goes in here --> | |
<style type="text/css"> | |
</style> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Reload Bug</title> | |
<style type="text/css"> | |
p { | |
font-size: 3em; | |
} | |
</style> | |
<script type="text/javascript"> |
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
# config | |
N = 10 | |
S = 4321 | |
T = 20 | |
PROBLEM_SELECTOR = control | |
BENCHMARK_SELECTOR = unsat/big | |
# constants | |
CSV_HEADER = "problem,elapsed,start,end,command" |
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
gulp.task("clean", function () { | |
return gulp.src("dist/*").pipe(rm()); | |
}); | |
gulp.task("config", function() { | |
spawn("python", ["gen_config.py"]) | |
.stdout | |
.pipe(stream("config.yml")) | |
.pipe(buffer()) | |
.pipe(gulp.dest(".")); |
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
binary = '01001001 00100000 01100010 01100101 01101100 01101001 01100101 01110110 01100101 00100000 01101001 01101110 00100000 01111001 01101111 01110101 00100000 00111100 00110011' | |
english = ''.join(chr(int(c, 2)) for c in binary.split(' ')) |
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/python | |
import random | |
import curses | |
KEY_ESCAPE = 27 | |
KEY_ENTER = 10 | |
KEY_Q = 81 | |
KEY_q = 113 |
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
# the word seach board, as a list of rows | |
# NOTE: | |
# rows must all be of the same length | |
BOARD = [ | |
"wcbqlqhtwgayj", | |
"bfhtgaycxqqtx", | |
"vrhczdtgayxfq", | |
"cvgaykcxwpfhd", | |
"tbqlqgayltvtg", | |
"sdwhfxcqjbqla", |
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
#! /bin/bash | |
usage() { | |
echo "Usage: $0 [phrase | \"default\"]" | |
exit 1 | |
} | |
run() { | |
local phrase=$@ |