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
diff -Naur duktape/src-input/builtins.yaml duktape-ooo/src-input/builtins.yaml | |
--- duktape/src-input/builtins.yaml 2019-05-11 19:06:14.000000000 -0700 | |
+++ duktape-ooo/src-input/builtins.yaml 2019-05-04 18:07:33.000000000 -0700 | |
@@ -204,80 +204,80 @@ | |
# This could be stripped when DUK_USE_GLOBAL_BUILTIN is disabled | |
# ("void 0" is the same and safer) but it's commonly used so keep. | |
- - key: "Object" | |
+ - key: "OOOObjectOOO" | |
value: |
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
import sys | |
import time | |
import nclib | |
r = nclib.Netcat(listen=("localhost", 9090)) | |
while not r.closed: | |
line = r.recv_line() | |
r.send(line) |
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 os import path | |
def for_all_in_path (name, fun): | |
""" | |
Iterator to run the given function (fun) on each directory in the given path (name). | |
Example: for_all_in_path("test/adam/example", fun) would call: | |
fun("test") | |
fun("test/adam") | |
fun("test/adam/example") |
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
function sshere { | |
CURRENT=$(pwd) | |
[[ "$CURRENT" =~ ^"$HOME"(/|$) ]] && CURRENT="~${CURRENT#$HOME}" | |
ssh -t $@ "if [ -d $CURRENT ]; then cd $CURRENT; fi; exec \$SHELL" | |
} |
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
import org.scalacheck._ | |
import org.scalacheck.Prop._ | |
import pllab.lwnn._ | |
import pllab.lwnn.syntax._ | |
object AbstractStateSpecification extends Properties("States") { | |
import Prop.forAll | |
import Gen._ | |
import Arbitrary.arbitrary |