Skip to content

Instantly share code, notes, and snippets.

@DhritiShikhar
DhritiShikhar / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
http://coussej.github.io/2015/09/15/Listening-to-generic-JSON-notifications-from-PostgreSQL-in-Go/
https://blog.andyet.com/2015/04/06/postgres-pubsub-with-json/
https://www.chrisstucchio.com/blog/2013/postgres_external_triggers.html
// Golang Closure
package main
import (
"fmt"
)
func step1() func() int {
i := 0