Skip to content

Instantly share code, notes, and snippets.

@xaiki
xaiki / .block
Last active July 23, 2020 15:37 — forked from tomshanley/.block
Sankey, with different end note link treatment
license: mit
@xaiki
xaiki / kiosko_scraper.rb
Created April 8, 2018 21:25 — forked from ahmdrefat/kiosko_scraper.rb
Scraping newspapers names from kiosko
require 'open-uri'
require 'nokogiri'
home_page = Nokogiri::HTML(open('http://en.kiosko.net/'))
countries = {}
cities = {}
newspapers = []
@xaiki
xaiki / README.md
Last active May 8, 2018 14:54 — forked from scttnlsn/README.md

Pub/sub with MongoDB and Node.js

Setup:

$ mongo
> use pubsub
> db.createCollection('messages', { capped: true, size: 100000 })
> db.messages.insert({})