Skip to content

Instantly share code, notes, and snippets.

View luisdaniel's full-sized avatar

Luis luisdaniel

View GitHub Profile
@luisdaniel
luisdaniel / gist:3ad00bfef6b90b5db519
Created February 26, 2015 21:22
verizon_morse_code.py
text = "- --- -.. .- -.-- .----. ... -.. . -.-. .. ... .. --- -. -... -.-- - .... . ..-. -.-. -.-. - --- . -. -.-. ..- -- -... . .-. -... .-. --- .- -.. -... .- -. -.. .. -. - . .-. -. . - ... . .-. ...- .. -.-. . ... .-- .. - .... -... .- -.. .-.. -.-- .- -. - .. --.- ..- .- - . -.. .-. . --. ..- .-.. .- - .. --- -. ... .. ... .- .-. .- -.. .. -.-. .- .-.. ... - . .--. - .... .- - .--. .-. . ... .- --. . ... .- - .. -- . --- ..-. ..- -. -.-. . .-. - .- .. -. - -.-- ..-. --- .-. -.-. --- -. ... ..- -- . .-. ... --..-- .. -. -. --- ...- .- - --- .-. ... .- -. -.. .. -. ...- . ... - --- .-. ... .-.-.- --- ...- . .-. - .... . .--. .- ... - - .-- --- -.. . -.-. .- -.. . ... .- -... .. .--. .- .-. - .. ... .- -. --..-- .-.. .. --. .... - -....- - --- ..- -.-. .... .--. --- .-.. .. -.-. -.-- .- .--. .--. .-. --- .- -.-. .... ..- -. .-.. . .- ... .... . -.. ..- -. .--. .-. . -.-. . -.. . -. - . -.. .. -. ...- . ... - -- . -. - .- -.
color green = color(45, 157, 2, 200);
float xCirc, yCirc, xLast, yLast;
float r, xo, yo, xo1;
PFont font;
PImage p0, p30, p45, p60, p90, p120, p135, p150, p180, p210, p225, p240, p270, p300, p315, p330, p360;
boolean snap = false;
void setup() {
size(1100, 500);
from BeautifulSoup import BeautifulSoup
import re
import urllib2
import json
import csv
csvreader = csv.reader(open('narcoBlogLinks.csv', 'rb'), delimiter=',')
csv = list(csvreader)
with open('data.json', 'w') as outfile: