Skip to content

Instantly share code, notes, and snippets.

View samkusin's full-sized avatar

Samir Sinha samkusin

View GitHub Profile
@samkusin
samkusin / qjsimp.c
Last active September 23, 2024 02:59
A Minimal QuickJS Hello World Example in C
/* This is a minimal example of a program that just uses the QuickJS library
to print "Hello".
There was a lack (at least on the QuickJS project page) of a simple sample
in C that demonstrates how one could embed QuickJS in a project. So I
wrote one.
It borrows heavily from qjs.c in the original project
but pulls only the essentials out for a "hello world" type demo.
https://bellard.org/quickjs/
@samkusin
samkusin / api.go
Last active August 14, 2016 21:49
A very, very basic and insecure (no CORS) RESTful Vector Map Tile API server written in Go (v1.6) as a first project. See comments for instructions on installing.
package main
// A very simple RESTful service for serving Vector Map Tiles. My first Go
// project that took 8-12 man hours including research and testing.
//
// To install packages
//
// go get github.com/julienschmidt/httprouter
// go get github.com/paulmach/go.geojson
// go get gopkg.in/mgo.v2