Skip to content

Instantly share code, notes, and snippets.

View pmn's full-sized avatar
🎯

Paul Nakata pmn

🎯
View GitHub Profile
@minikomi
minikomi / persona.go
Last active December 11, 2015 06:59
mozilla persona test
package main
import (
"encoding/json"
"fmt"
"github.com/gorilla/sessions"
"io/ioutil"
"log"
"net/http"
"net/url"
@adharris
adharris / postgres_array.go
Created November 28, 2012 19:52
PostgreSQL demo of Array types using Golang
package main
import (
"database/sql"
"errors"
"fmt"
_ "github.com/bmizerany/pq"
"os"
"regexp"
"strings"
@stuarthalloway
stuarthalloway / gist:1980351
Created March 5, 2012 18:56
frinj unit conversion running inside a Datomic datalog query
;; lein settings
(defproject foo "1.0.0-SNAPSHOT"
:description "Test App"
:dependencies [[com.datomic/datomic "0.1.2678"]
[frinj "0.1.2" :exclusions [org.clojure/clojure]]])
;; load libs
(use 'frinj.core 'frinj.calc)
(frinj-init!)
(use '[datomic.api :only (q db) :as d])
@reiddraper
reiddraper / query.clj
Created December 31, 2011 04:27
sumo querying ideas
; 2i queries
(index-query conn :age 25)
(index-query conn :age 21 80)
(index-query conn :last-name "a" "f")
; is it too much of an abstraction to launch
; a mapreduce query which gets the docs and not
; just the keys?
(index-query conn :email "foo@example.com" :return-body true)
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt

If you’ve got the weekend to check out the town, here are a few places worth heading:

There are quite a few neighborhoods that have sprung up alongside streets designed as mixed-use live/work/eat/drink/relax areas. Here are a few of them:

Mississippi
- Head over to N Fremont and Mississippi Ave (near the MAX) and start walking up the street. Por Qué No is one of the best taquerias in town. You’ll pass several other places like The Rebuilding Center (a warehouse of donated / deconstructed homes filled with reclaimed material; take a walk through if you’re near; it’s an incredible place), Ruby Jewel is a great ice cream shop, there’s Sunlan (a lightbulb shop; the woman who owns it is a bit of a savant — stop in), Fresh Pot (coffee), Miss Delta (cafe/bar), a few food carts up toward Skidmore, a store for buying coffee beans for roasting, an itzakaya — lots of stuff. Albina Press is also great for enjoying an americano or iced coffee and has free wifi.

Alberta
- Or, head up a bit further to NE 15th and