{
"one": 2,
"three": {
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 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
====== 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. |
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_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`" |
Original code from https://gist.github.com/mrap/7f08c9549289b6aea2923c27888e7e3e
$ go test -bench=. -benchmem
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
#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) { |
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
# 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 |