Reeder, Simplenote, Twitterific, Amazon Kindle, Instapaper Pro, Goodreader, Weather Pro HD, Dropbox, Plants vs Zombies, IMDb, Guardian Eyewitness, Flipboard, Articles, FlickStackr, FlightTrack, PONS German dictionary, Marvel comics, Canabalt, Osmos HD
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
| # curl -O 'http://events.londonopenhouse.org/Venues?q=&Page=[1-80]' | |
| # grep 'href.*/building/' * | cut -d\" -f 2 | sort -u | sed -e 's/.*/http:\/\/events.londonopenhouse.org\/&/' > buildings.txt | |
| # gem install nokogiri | |
| # ruby this_script.rb > loh.json | |
| # ogr2ogr -f KML loh.kml loh.json | |
| require 'nokogiri' | |
| require 'json' | |
| DETAILED = false # Google Maps complains if the KML gets too big |
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
| in the: ************************************* (3765) | |
| i love: *************************** (2781) | |
| to be: ************************** (2637) | |
| of the: ********************* (2150) | |
| if you: ********************* (2150) | |
| on the: ******************** (2081) | |
| i just: ****************** (1838) | |
| i was: ****************** (1829) | |
| i don't: ****************** (1825) | |
| i have: ****************** (1802) |
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 'nokogiri' | |
| m = {} | |
| f = {} | |
| open("dist.male.first").readlines.each { |l| | |
| d = l.split(/ +/) | |
| m[d[0].downcase] = d[1].to_f | |
| } | |
| open("dist.female.first").readlines.each { |l| |
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
| object Load { | |
| def main(args: Array[String]) { | |
| val pool = new JedisPool(new JedisPoolConfig, "localhost"); | |
| new File(".").list.filter( _.toLowerCase.endsWith(".gz") ) map { | |
| file => spawn { | |
| println(file + " started."); | |
| val in = new BufferedSource(new GZIPInputStream(new FileInputStream(file))); | |
| val jedis = pool.getResource; |
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
| import org.geotools.kml._; | |
| import org.geotools.xml._; | |
| import com.vividsolutions.jts.triangulate._; | |
| import com.vividsolutions.jts.io.gml2._; | |
| import com.vividsolutions.jts.geom._; | |
| import scala.collection._; | |
| object voronoi { | |
| def main(args:Array[String]) = { | |
| var gf = new GeometryFactory; |
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
| Senior Web Designer | |
| Nokia's Services Unit plays a leading role in shaping Nokia's growth | |
| and transformation into an Internet company by generating new revenue | |
| streams based on software and services. We are fundamentally changing | |
| the perception of Nokia in the market. The Services Unit's portfolio | |
| includes Ovi-branded services such as maps, music, games, social | |
| networking, sharing, and email which create opportunities for people to | |
| connect to each other and the things that matter to them. The developed | |
| services and software can be used on PCs, online or on mobile devices, |
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
| Senior Frontend Developer | |
| Description | |
| The Services business unit plays a leading role in shaping Nokia's | |
| growth and transformation into an internet company by generating new | |
| revenue streams based on software and services. We are fundamentally | |
| changing the perception of Nokia in the market. The Services unit | |
| portfolio includes Ovi-branded services such as maps, music, games, | |
| social networking, sharing, and email which create opportunities for |
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 'eventmachine' | |
| require 'yajl' | |
| require 'em-http' | |
| require 'uri' | |
| EventMachine.run { | |
| body = '' | |
| on_body = lambda { |chunk| | |
| chunk.split(/\n/).each { |json| |
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 'open-uri' ; require 'rss/2.0' ; require 'cgi' | |
| delicious_user='mattb' | |
| instapaper_user='[email protected]' | |
| instapaper_password='whatever' | |
| RSS::Parser.parse(open('http://feeds.delicious.com/v2/rss/network/#{delicious_user}?count=15').read).items.each { |item| open("https://www.instapaper.com/api/add?username=#{instapaper_user}&password=#{instapaper_password}&url=#{CGI.escape(item.link)}&auto-title=1").read } |