Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
# Usage:
#
# $ rustinstant 'println!("hello world!")'
# => hello world
#
# or
#
# $ cat << EOF | rustinstant
#!/usr/bin/env sh
# Scrap web pages
#
# Usage:
# $ ./wscrap.sh https:xxx/xxx/
set -eu
DEPTH=8
@jedy
jedy / reader.go
Created August 7, 2012 07:20
processes communicate with shared memory in golang
package main
// #include <stdlib.h>
// #include "wrapper.c"
import "C"
import "unsafe"
import "fmt"
func read(filename string) string {
f := C.CString(filename)