gist

PostgreSQL: GIN or GiST indexes?

From what information I could find, they both solve the same problems - more esoteric operations like array containment and intersection (&&, @>, <@, etc). However I would be interested in advice about when to use one or the other (or neither possibly). The PostgreSQL documentation has some information about this: GIN index lookups are...

What's the difference between B-Tree and GiST index methods (in PostgreSQL)?

I have been working on optimizing my Postgres databases recently, and traditionally, I've only ever use B-Tree indexes. However, I saw that GiST indexes suport non-unique, multicolumn indexes, in the Postgres 8.3 documentation. I couldn't, however, see what the actual difference between them is. I was hoping that my fellow coders migh...

Using the Github Gist API from Haskell

First of all, I've never really used APIs before, and I've never used the HTTP library in Haskell. I'm not sure what I'm doing wrong here, so maybe somebody who knows can help. I'm using what I can read of this: http://github.com/defunkt/gist/blob/master/gist.rb, namely the write method, to write this: req = postRequest "http://gist.gi...

How do you manage your gists on github?

I love github and their gist service and that's why I'm keeping a lot of code snippets and even development notes as a gist on my github account. It also makes it easy to share them with my colleagues. The problem is that it doesn't scale!! the github features for gist are primitive and I have lots of gists there which make it really di...

Basics of version control from a Git(hub) perspective

I learned of gist.github.com from Mozilla Ubiquity, and have been using it to post small stuff I've written, and to keep it updated in a public place, with version control so no information is lost. I understand the basic idea of version control, but I don't know how to use it in a practical sense. I've tried reading through tutorials ...

A way to add markup to gist in http://gist.github.com/ ?

Seems like a lot of people use gists for cheatsheets, including me, so unlike code line wrapping would be nice! Any way to do this? ...

Is there an internal alternative to gist.github.com to run behind a firewall?

gist.github.com is incredibly handy, but I'd like to be able run something similar for sharing code samples internally with other developers behind the firewall where I work, so I don't constantly need to be sanitising my code all the time, just to talk about code examples. Does anything like this exist? I'm not after big project manag...