Skip to content

Instantly share code, notes, and snippets.

@joao
joao / style.css
Last active November 18, 2018 15:41
old Gmail stylesheet
/* Hide Gmail logo */
#gb > div.gb_Ld.gb_je.gb_Td > div.gb_Dc.gb_5d.gb_Je {
visibility: hidden;
}
/* Hide side panel */
body > div:nth-child(17) > div.nH > div > div.nH.bkL > div.no > div.nH.bAw.nn.it > div.brC-dA-I-Jw {
@joao
joao / temperature_scraper.rb
Created September 8, 2018 09:22
Scraper para tempo.pt
# Instruções:
# 1) correr 'gem install httparty' no terminal do macOS
# 2) actualizar o station_id com o ID da estação que se pretende do website tempo.pt
# 3) escolher o espaço temporal pretendido nas variáveis mais abaixo: start_date, end_date
# 4) correr 'ruby temperature_scraper.rb'
#
# É gerado um ficheiro temp_media, separado por ','
require 'httparty'
require 'date'
@joao
joao / first_instagram_users.csv
Last active May 21, 2021 16:21
Instagram users up to ID 10000 (active as of 2018)
user_id username full_name link
3 kevin Kevin Systrom https://instagram.com/kevin
4 mikeyk Mike Krieger https://instagram.com/mikeyk
5 abbott @abbott🏌 https://instagram.com/abbott
6 nicole Nicole Systrom https://instagram.com/nicole
8 brow Tom Brow https://instagram.com/brow
10 standers https://instagram.com/standers
11 m Photographer of the Week https://instagram.com/m
12 kaitlyn Kaitlyn Krieger https://instagram.com/kaitlyn
13 uxgreg Greg Schwartz https://instagram.com/uxgreg
@joao
joao / .bash_profile
Created December 19, 2015 23:09
alias
alias p="ps aux | grep $1"
alias whatsmyip="curl icanhazip.com"
alias sizeit="du -sh $1"
alias countfiles="find . -type f | wc -l"
alias brewupgrade="brew upgrade && brew prune && brew cleanup"
# open current directory files in Sublime Text
alias s="subl ."
@joao
joao / screenshot.js
Created May 16, 2015 18:34
Screenshots with Phantom.js
// SCREENSHOT WEBPAGES WITH PHANTOMJS
// USAGE: phantomjs screenshot.js http://webpage.com screenshot.png
// NOTES: use it in the command line
// WORKS: tested with PhantomJS, installed via Homebrew in OS X
// For passing args in the command line
var system = require('system');
var args = system.args;
Bas Ording (presentation at Doors of Perception 5, 1998)
ording@worldonline.nl
Bas Ording was born in 1973 in the Netherlands. In 1992 he started the four year course Interaction Design at the Utrecht School of the Arts. During the course he developed design skills as well as programming skills. In 1997 he graduated from the Master of Arts course in Interactive Multi Media, where he worked in a multidisciplinairy team on a CD-ROM for the Dutch Aids Foundation. From 1994 he worked as a freelance HCI-designer for various multimedia companies. This made for a nice balance between free-research and applied design. The projects varied from visual database representations to Shockwave games for the web, company presentations and interactive educational CD-ROMs. In most of the projects he was involved in both concept development as well as production. On an autonomous/experimental basis he develops prototypes and demos of new interface elements and styles. His work is focused at, what he calls `Dynamical User Inter