Skip to content

Instantly share code, notes, and snippets.

View DrGo's full-sized avatar
💭
Palm oil. know the facts!

DrGo

💭
Palm oil. know the facts!
View GitHub Profile
@DrGo
DrGo / bmark_test.go
Last active August 29, 2015 14:25 — forked from hutch/bmark_test.go
accompanies the blog post: Comparing JSON and XML as DataFormats… Again http://xampl.com/so/2012/06/22/1164/
View bmark_test.go
package main
// run from the command line as:
// go test -bench=".*
import (
"testing"
)
func BenchmarkJSON(b *testing.B) {
@DrGo
DrGo / OpenWithSublimeTextAsAdmin.bat
Last active September 8, 2015 00:33 — forked from jcppkkk/OpenWithSublime.bat
Add context menu to allow user open file or folder with Sublime as User or Admin. Save the raw file OpenWithSublimeTextAsAdmin.bat into sublime folder and execute it.
View OpenWithSublimeTextAsAdmin.bat
@echo off
@rem \"%stPath%\" : Path to Sublime Text installation dir.
@rem %UserEntry%: Key name for the registry entry.
@rem %UserMenuText% : Context menu text. Set your preferred menu text (e.g.: translate to your language).
@rem %AdminEntry%: Key name for the registry entry.
@rem %AdminMenuText% : Context menu text. Set your preferred menu text for administrator privilege (e.g.: translate to your language).
SET stPath=%~dp0sublime_text.exe
SET UserEntry=Sublime Text
SET AdminEntry=Sublime Text As Admin
@DrGo
DrGo / main.go
Created November 22, 2015 21:49 — forked from nmerouze/main.go
JSON-API with Go and MongoDB: Final Part
View main.go
package main
import (
"encoding/json"
"log"
"net/http"
"reflect"
"time"
"github.com/gorilla/context"
@DrGo
DrGo / main.go
Created November 22, 2015 21:50 — forked from nmerouze/main.go
Example for "Build Your Own Web Framework in Go" articles
View main.go
package main
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"log"
"net/http"
"time"
@DrGo
DrGo / gist:ca8ca7a0f74aa2965c65
Created December 30, 2015 07:52 — forked from anonymous/gist:978407
render form
View gist:ca8ca7a0f74aa2965c65
package web
import (
"reflect"
"strconv"
"strings"
"util"
)
const (
@DrGo
DrGo / lex.go
Created May 6, 2016 02:26 — forked from apmckinlay/lex.go
View lex.go
// Package lex implements the lexical scanner for Suneido
package lex
import (
"bytes"
"strings"
"unicode"
"unicode/utf8"
)
@DrGo
DrGo / README.md
Created January 28, 2017 15:09 — forked from hofmannsven/README.md
My simply Git Cheatsheet
View app-engine-google-cloud-storage-upload-example.go
package example
import (
"fmt"
"math/rand"
"net/http"
"google.golang.org/appengine"
"google.golang.org/appengine/file"
"google.golang.org/appengine/log"
View app-engine-google-cloud-storage-upload-example.go
package example
import (
"fmt"
"math/rand"
"net/http"
"google.golang.org/appengine"
"google.golang.org/appengine/file"
"google.golang.org/appengine/log"
@DrGo
DrGo / BetterBibLatexCiteKeyForMarkdown.js
Created June 18, 2017 02:51 — forked from EoinTravers/BetterBibLatexCiteKeyForMarkdown.js
A modification of BibTexCiteKeyForMarkdown, exporting citations in BetterBibLatex format (i.e. "@TRAVERS2015")
View BetterBibLatexCiteKeyForMarkdown.js
{
"translatorID": "",
"translatorType": 3,
"label": "Better BibLateX key for Markdown",
"creator": "Eoin Travers. Forked from BibTex key for Markdown, created by liob based on the works of Peter O'Brien, Simon Kornblith and Richard Karnesky",
"target": "bib",
"minVersion": "2.1.9",
"maxVersion": null,
"priority": 200,
"inRepository": true,