Skip to content

Instantly share code, notes, and snippets.

View mion's full-sized avatar
:octocat:
Focusing

Gabriel mion

:octocat:
Focusing
  • Rio de Janeiro, Brazil
View GitHub Profile
<!-- Approach 1 -->
<div class="card">
<a href="/user/123" class="mp-card-user">Steve</a>
<a href="/business/456" class="mp-card-business">Apple</a>
</div>
<!-- Approach 2 -->
<div class="card mp-card">
<a href="/user/123">Steve</a>
<a href="/business/456">Apple</a>
#!/usr/bin/env python
import time
import sh
import redis
from selenium import webdriver
fake_queue = [
{
'course': 'Processo do Trabalho - Marcelo Moura',
@mion
mion / HTML md5
Last active December 12, 2015 05:58
Track changes to a website! Run it in a cron.
# Track changes to a website, dude!
require 'open-uri'
require 'digest/md5'
require 'tempfile'
############### Dem helper methods yo
def write_md5(md5, filename)
File.open(filename, 'w') { |f| f.write(md5) }
end