This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- The Secret Life of The Manic Depressive | |
- The Ascent of Money | |
- The Century of the Self | |
- (Alan Moore) | |
- (John Nash) | |
- Trinity | |
- Chasing Ghosts | |
- Helvetica | |
- The King of Kong | |
- (Pinball) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
require 'open-uri' | |
class Twitter | |
include HTTParty | |
base_uri 'twitter.com' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'csquares' | |
require 'geohash' | |
class TileMaker | |
def self.make(lat_min = 0.0, lon_min = 0.0, lat_max = 90.0, lon_max = 180.0, step = 0.0001) | |
lat = lat_min |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'wirble' | |
Wirble.init | |
Wirble.colorize | |
script_console_running = ENV.include?('RAILS_ENV') && IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers') | |
rails_running = ENV.include?('RAILS_ENV') && !(IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers')) | |
irb_standalone_running = !script_console_running && !rails_running | |
if script_console_running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Una presentación sobre nada | |
"nothing happens on the show. You see, it's just like life. You know, you eat, you go shopping, you read.. You eat, you read, You go shopping." (Seinfield) | |
- The Lunar Society | |
"The Lunar Society of Birmingham was a dinner club and informal learned society of prominent industrialists, natural philosophers and intellectuals who met regularly between 1765 and 1813 in Birmingham, England." | |
- John Snow - The Ghost Map | |
"John Snow (15 March 1813 – 16 June 1858) was a British physician and a leader in the adoption of anaesthesia and medical hygiene. He is considered to be one of the fathers of epidemiology, because of his work in tracing the source of a cholera outbreak in Soho, England, in 1854." | |
- Historias individuales intricadas en un marco histórico |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# home | |
require 'lib/stairway' | |
oauth = Stairway::OAuth.new('4W3Wj1BO4T2Dglt9pNMl','5ctPK7n8V695rd1uVEPOKDcv2Ak3ptvCiplHH6Lk') | |
oauth.authorize_from_access('esxMpOTZxhvzCov3YzeP','nCkj2acM9HfXai6Wats5OULY0gymjIBnV39T9XJT') | |
traveler = Stairway::Traveler.new(oauth) | |
traveler.ping('54.19','-0.17') | |
# work | |
require 'lib/stairway' | |
oauth = Stairway::OAuth.new('ySsLWOjjLpi4W0E6sEHN','JRjIrhplCHOudJNN2dSoXyEjy1MsTUdUGaKqG88g') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case | |
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement | |
Please fork, tweet about, etc. | |
---- | |
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activity streams' notifications to third parties are cool because they bring a feeling of a shared public space and increase the chance of serendipitous findings | |
# But too much information quickly becomes noise, and relevant bits of news can disappear among a tsunami of irrelevant (to me) "x did y with z' | |
# What we're trying to do here is going from deterministic notifications (stuff happens, stuff gets broadcasted) to stochastic ones (stuff happens, stuff may gets broadcasted) | |
# Thanks to the fantastic alea gem (http://github.com/linkingpaths/alea) by Linking Paths, the explanation is way longer than this very naive one liner implementation. | |
# TO-DO: experiment with varying the probabilities based on time thresholds (i.e. 100 similar notifications (same type / same originating user) in one hour have a 1% chance of showing up, 1 single notification in one hour has 100% chances of showing up) | |
def do_probabilistic_broadcast | |
# Always notify you of activity around your stuff | |
notify_owner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## CAUTION: Very rough draft. A more complete and polished version will follow soon: | |
--- | |
Kandypot es un sistema de karma social, implementado en forma de API HTTP para su uso desde/por toda clase de sitios basados en la interacción social. Tiene tres principios básicos: | |
- Recompensa: a las buenas acciones se les conceden premios. Estos premios son unidades de kandies. | |
- Aleatoriedad: No se recompensan todas las acciones, sino que se maneja un porcentaje de probabilidad que determina que a veces se otorga el premio, a veces no. | |
- Transferencia: si la buena acción implica a dos usuarios, y merece premio, se produce una transferencia de kandies del recompensado al otro usuario involucrado. Es decir, si yo dejo un comentario en un post tuyo, y mi comentario me hace ganar 10 kandies, un porcentaje de estos pasarán a ti. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'wirble' | |
require 'hirb' | |
Wirble.init | |
Wirble.colorize | |
Hirb.enable | |
script_console_running = ENV.include?('RAILS_ENV') && IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers') | |
rails_running = ENV.include?('RAILS_ENV') && !(IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers')) |