Skip to content

Instantly share code, notes, and snippets.

View fxn's full-sized avatar

Xavier Noria fxn

View GitHub Profile
@fxn
fxn / moved
Created October 29, 2008 15:38
Rails core contributors
Please check http://contributors.rubyonrails.org/
@fxn
fxn / moved
Created November 10, 2008 09:03
rails_contributors.rb
Please check Please check http://contributors.rubyonrails.org/names_mapping
@fxn
fxn / moved
Created February 17, 2009 19:13
script that generates the list of Rails contributors
Please check http://github.com/fxn/rails-contributors/tree/master
@fxn
fxn / moved
Created February 17, 2009 19:14
Please check http://contributors.rubyonrails.org/names_mapping
We couldn’t find that file to show.
# Throw this into your bash init file for automatic
# paging of a few svn commands, a la git.
SVN_PATH=`which svn`
function svn
{
case $1 in
cat | diff | help | list | log )
if test -t 1
then
@fxn
fxn / .fxn.bashrc
Created January 9, 2010 15:17
bash stuff common to different computers
# ls(1)
alias ls='ls -F'
alias ll='ls -lh'
alias la='ls -lhA'
# Rails commands
alias ss='script/server'
alias sc='script/console'
alias sr='script/runner'
alias sa='script/about'
@fxn
fxn / gist:274219
Created January 11, 2010 13:05
seach for STI grandchildren who are leaves
# Computes STI models who are grandchildren or more.
#
# In a STI the root class and its subclasses work normally, but if there are
# grandchildren we need to preload them. Reason is, given A < B < C, if you
# for example compute B.count without loading A, only B records are taken into
# account in the query (where a clause about the type column intervenes). This
# is not a bug, Active Record is simply not aware of A. Once it is, the clause
# becomes an OR with all relevant types.
#
# I used this script to compute them.
A backup from http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case
----
Creating Shazam in Java
A couple of days ago I encountered this article: How Shazam Works
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java?
@fxn
fxn / authors of electronic music
Created July 19, 2010 19:32
Recommendations of authors/groups of electronic music
Moby
Enigma - Enigma 3
Hooverphonic
Koop
Au Revoir Simone
The XX
Gotan Project
Air
The Virgin Suicides
Goldfrapp