Original code from https://gist.github.com/mrap/7f08c9549289b6aea2923c27888e7e3e
$ go test -bench=. -benchmem
# Copy local Go Timezone DB to your project | |
$ cp "$(go env | grep -F GOROOT | cut -d\" -f2)/lib/time/zoneinfo.zip" . | |
# Reference main.go to embed the zip and reference that data | |
# -or- | |
# Just use the tzinfo.go for your base reference |
#include "gravity_compiler.h" | |
#include "gravity_macros.h" | |
#include "gravity_core.h" | |
#include "gravity_vm.h" | |
#define SOURCE "func main() {var a = 10; var b=20; return a + b}" | |
// error reporting callback called by both compiler or VM | |
static void report_error (gravity_vm *vm, error_type_t error_type, | |
const char *description, error_desc_t error_desc, void *xdata) { |
Original code from https://gist.github.com/mrap/7f08c9549289b6aea2923c27888e7e3e
$ go test -bench=. -benchmem
BIN_VERSION = "$(grep -E '^__version__' my_script.py | cut -d"'" -f2 | cut -d\" -f2)" | |
# BIN_VERSION = "$(grep -E '^__version__' my_script.py | cut -d\' -f2 | cut -d\" -f2)" | |
# BIN_VERSION = "`grep -E '^__version__' my_script.py | cut -d"'" -f2 | cut -d\" -f2`" | |
# BIN_VERSION = "`grep -E '^__version__' my_script.py | cut -d\' -f2 | cut -d\" -f2`" |
====== Code Block Test ====== | |
===== JSON ===== | |
''%%json { "one": 2, "three": { "point_1": "point_2", "point_3": 3.4 }, "list": [ "one", "two", "three" ] }%%'' | |
That was my JSON code block. |
# | |