Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
| # to execute this gist, run the line bellow in terminal | |
| \curl -L https://raw.github.com/gist/3875946/install_source_code_pro.sh | sh |
Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
This article is now published on my website: Prefer Subshells for Context.
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| {-# LANGUAGE BangPatterns #-} | |
| --module Data.Huffman where | |
| module Main where | |
| import Data.Char (intToDigit) | |
| import Data.List (insertBy, foldl', sortBy) | |
| import Data.Maybe (fromJust) | |
| import Data.Ord (comparing) | |
| import qualified Data.Binary.BitPut as P | |
| import qualified Data.Binary.Strict.BitGet as G |