Skip to content

Instantly share code, notes, and snippets.

View longfin's full-sized avatar

Swen Mun longfin

View GitHub Profile
@dahlia
dahlia / README.md
Last active December 10, 2018 01:23
Redirect to Canonical Postgres Docs

Redirect to Canonical Postgres Docs

This userscript makes you to always see the canonical ("current") version of PostgreSQL docs instead of the specific (usually outdated) version of that.

Install

Distributed under public domain.

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@romanr
romanr / gist:3192047
Created July 28, 2012 06:11
Warning: Your developer_dir setting in macports.conf points to a non-existing directory. Since this is known to cause problems, please correct the setting or comment it and let macports auto-discover the correct path.
Warning: Your developer_dir setting in macports.conf points to a non-existing directory. Since this is known to cause problems, please correct the setting or comment it and let macports auto-discover the correct path.
xcode-select --print-path
sudo nano /opt/local/etc/macports/macports.conf
@djpowell
djpowell / reload_templates.clj
Created November 26, 2011 23:15
Ring middleware for reloading enlive templates
(ns net.djpowell.reload-templates
(:require [clojure.java.io :as io]))
;; Ring middleware that reloads namespaces when associated templates
;; change. Assumes a hypothetical version of enlive that stores the
;; template path against the deftemplate/defsnippet var under the key:
;; :net.cgrand.enlive-html/template
(defn ^:private ns-templates
"Get the list of templates and snippets associated with a given namespace"