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
# blatantly inspired and actually almost copied from | |
# https://www.exratione.com/2013/08/angularjs-wrapping-http-for-fun-and-profit/ | |
# BEWARE: not tested in any way | |
# create the decorator | |
$cancellableHttp = ($delegate, $q) -> | |
$http = $delegate | |
canceler = null |
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/sh | |
KERNEL="vmlinuz" | |
INITRD="initrd.gz" | |
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off" | |
MEM="-m 1G" | |
NET="-s 2:0,virtio-net" | |
IMG_CD="-s 3,ahci-cd,ubuntu.iso" | |
IMG_HDD="-s 4,virtio-blk,hdd.img" | |
PCI_DEV="-s 0:0,hostbridge -s 31,lpc" | |
LPC_DEV="-l com1,stdio" |
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
///////////////////////////////////////////////////////// | |
// Normal wrapper, using globals inside of it, but | |
// local variables and functions are not leaking out. | |
(function () { | |
// function to execute on load | |
var circle = function () { | |
// do stuff | |
}; |
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
--- | |
BUNDLE_BUILD__PG: "--with-opt-dir=/usr/local/opt/libpq" | |
BUNDLE_BUILD__PUMA: "--with-cflags=-Wno-error=implicit-function-declaration" |
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
Mix.install([:erlavro, :avrora, :jason]) | |
record = %{"id" => 1, "name" => "test"} | |
record_schema = """ | |
{ | |
"type": "record", | |
"name": "TestRecord", | |
"fields": [ | |
{"name": "id", "type": "int"}, |