Instantly share code, notes, and snippets.

Pedro Diogo PedroDiogo

View GitHub Profile
@PedroDiogo
PedroDiogo / gist:acf8dfe5ed0d0955d42d
Created Feb 27, 2016
Boot of Technicolor TG582N with OpenWRT
View gist:acf8dfe5ed0d0955d42d
HELO
CPUI
L1CI
DRAM
----
PHYS
ZQDN
PHYE
DINT
LSYN
@PedroDiogo
PedroDiogo / solution.rb
Created May 2, 2012 — forked from isa/gist:2571012
Convert in less than 30 lines
View solution.rb
Question: Convert following into the latter data structure in less than 30 lines:
List:
A, B, C
A, C, E
E, F, D
D, A, J
E, D, J
List
@PedroDiogo
PedroDiogo / notas.rb
Created Jan 19, 2010
Script que vai buscar as notas de Psis e as imprime em forma de tabela
View notas.rb
require "rubygems"
require "nokogiri"
require "open-uri"
require "terminal-table/import"
header = %w[Numero Curso Nome Bonus Grupo 1o\ Rel 2o\ Rel Proj 1o\ Exame 2o\ Exame Exame Final]
results, i = Array.new(12), 0
Nokogiri::HTML(open('http://comp.ist.utl.pt/ec-ps/Ano/09/Pauta.html')).css('tr:nth-child(261) td').each do |element|
results[i] = element.content