Skip to content

Instantly share code, notes, and snippets.

View f-prime's full-sized avatar
🏠
Working from home

Frankie f-prime

🏠
Working from home
View GitHub Profile
### Keybase proof
I hereby claim:
* I am f-prime on github.
* I am fprime (https://keybase.io/fprime) on keybase.
* I have a public key ASB_qIrtxDp98gWTAuWQ8F7JMKGOCaTff0t3eZxe2YrEYgo
To claim this, I am signing this object:
@f-prime
f-prime / province_codes.csv
Last active August 26, 2019 22:23
International Province Codes
AR 00 Capital Federal
AR 01 Buenos Aires
AR 02 Catamarca
AR 03 Córdoba
AR 04 Corrientes
AR 05 Entre Rios
AR 06 Jujuy
AR 07 Mendoza
AR 08 La Rioja
AR 09 Salta
import socket
import json
import threading
import landerdb
class DemoP2P:
def __init__(self):
self.host = ""
self.port = 1337
self.db = landerdb.Connect("nodes.db")
@f-prime
f-prime / gist:4698599
Created February 2, 2013 18:04
The script extracts the link from an ad page.
import urllib
class AdflySkipper:
def __init__(self, url):
self.url = url
def extract(self):
source = urllib.urlopen(self.url).readlines()
for line in source: