Skip to content

Instantly share code, notes, and snippets.

View dtx's full-sized avatar

The Builder dtx

  • San Francisco, Silicon Valley
View GitHub Profile
@dtx
dtx / getclient.go
Created November 14, 2017 08:07
GET library for C written in Go
package main
import (
"C"
"net/http"
"io/ioutil"
"fmt"
)
//export MakeGetCall
func MakeGetCall(a string) *C.char{
@dtx
dtx / HashMap.js
Created September 27, 2012 00:11
A simple HashMap implementation in Javascript, just something I wrote while reading DailyJS.
var HashMap = function(){
this._size = 0;
this._map = {};
}
HashMap.prototype = {
put: function(key, value){
if(!this.containsKey(key)){
this._size++;