Skip to content

Instantly share code, notes, and snippets.

Harley Watson unlobito

Block or report user

Report or block unlobito

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ataricontroller2
void setup() {
// initialize serial communication:
Serial.begin(9600);
// initialize the LED pins:
for (int thisPin = 2; thisPin < 7; thisPin++) {
pinMode(thisPin, OUTPUT);
}
}
void loop() {
View services.class.php
<?php
class Search {
function google($q) {
$request = 'http://ajax.googleapis.com/ajax/services/search/web?rsz=large&v=1.0&q='.urlencode($q);
$result = json_decode(Utils::request($request));
//print_r($result->responseData->results);
$results = Array();
foreach ($result->responseData->results as $result) {
$results[] = new SearchItem($result->titleNoFormatting, $result->url, $result->content, 'google');
}
View extraer.php
<?php
$url = "http://inposdom.gob.do/codigopostal/jos_codigopostallist.php?start=";
$total = 128;
$postal = Array();
for ($i=0; $i<=$total; $i++) {
$data = file_get_contents($url.($i*2)."1");
View gist:3dca0a6a3442a30f2310896951575986
### Keybase proof
I hereby claim:
* I am unlobito on github.
* I am unlobito (https://keybase.io/unlobito) on keybase.
* I have a public key ASCbyjhHAp3621abw-8PlV4mmc2u6SexxBS7SjSJoyTp9wo
To claim this, I am signing this object:
@unlobito
unlobito / unblock_all.py
Last active Jan 16, 2018 — forked from kristopherjohnson/unblock_all.py
Unblock all blocked Twitter accounts
View unblock_all.py
#!/usr/bin/env python3
# Dependency: pip3 install twitter
import twitter
# Go to http://apps.twitter.com/, create an app, and fill in these values:
consumer_key = 'www'
consumer_secret = 'xxx'
access_token = 'yyy'
access_token_secret = 'zzz'
View StackOverflow Reputation Audit Parser.php
<?php
$audit = file_get_contents('audit.txt');
$audit = split("\n", $audit);
$data = Array();
for ($i=0; $i!=count($audit); $i++) {
$line = $audit[$i];
$datatype = substr($line, 0, 1);
switch ($datatype) {
case '-':
$day = substr($line, 3, 10);
You can’t perform that action at this time.