Skip to content

Instantly share code, notes, and snippets.

View rom232's full-sized avatar

Rodrigo Otávio Moraes rom232

View GitHub Profile
@rom232
rom232 / mobile.html
Created January 14, 2014 19:43 — forked from adikahorvath/mobile.html
mobile links
<a href="tel:+1800229933">Call</a>
<a href="sms:+1800229933?body=hellofucku">SMS</a>
<a href="facetime://5555555555">Facetime</a>
<a href="skype:skype_user?call">Skype</a>
@rom232
rom232 / bufferFromCoord.sql
Last active December 30, 2015 19:09
Código para gerar BUFFER em volta de um ponto. Transoformando-o em polígono. ps. serve para linhas tbm.
ST_Buffer(ST_GeographyFromText('POINT(".$column['nu_longitude'] . " " .$column['nu_latitude'] .")'), 50)
st_geomfromtext(st_astext(CODIGOACIAMA),4326)
-- codigo do SOL [ @solbisio ]
@rom232
rom232 / timMinchinScience.md
Created November 29, 2013 15:36
Tim Minchin Science Definition

"Science is not a body of knowledge nor a belief system it's just a term which describes human kinds incremental acquisition of understanding through observation. Science is awsome!" -- Tim Minchin

@rom232
rom232 / twitterBot.py
Last active December 29, 2015 17:39
Simple Bot twitter with Twython
#!/usr/bin/env python
import sys
import os
import urllib2
import time
import random
from twython import Twython
CONSUMER_KEY = '****************YOUR OWN KEY****************'
CONSUMER_SECRET = '****************YOUR OWN KEY****************'
@rom232
rom232 / valida_ip.php
Created September 16, 2013 13:47
Função para validação de IP em php
<?php
/*
* ip_in_range.php - Function to determine if an IP is located in a
* specific range as specified via several alternative
* formats.
*
* Network ranges can be specified as:
* 1. Wildcard format: 1.2.3.*
* 2. CIDR format: 1.2.3/24 OR 1.2.3.4/255.255.255.0