Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open('http://www.nsovocal.com/rosa/'))
puts doc.css('#episodio').to_s.gsub(/<\/?[^>]*>/, '').strip
#!/bin/sh
extra=""
if [[ "$1" != "" ]]; then
revnumber=$(git rev-parse $1)
extra="/commit/$revnumber"
fi
open `git config -l | sed -En 's/remote.origin.url=git(@|:\/\/)github.com(:|\/)(.+)\/(.+).git/https:\/\/github.com\/\3\/\4/p'`$extra