Skip to content

Instantly share code, notes, and snippets.

import urllib2
import sys
import json
import codecs
from bs4 import BeautifulSoup
sys.setrecursionlimit(2500)
html = urllib2.urlopen("http://wordsgalore.com/wordsgalore/languages/spanish/spanish1000.html").read()
base_url = "http://wordsgalore.com/wordsgalore/languages/spanish/"
soup = BeautifulSoup(html, "html.parser")
@cblgh
cblgh / letter-to-the-void.py
Created September 13, 2016 15:06
a letter to the void
import random
def geo_print():
void_string = ""
for i in xrange(32):
for i in xrange(15):
rand = random.random()
ch = "A"
if rand > 0.6:
ch = " "
void_string += ch
@cblgh
cblgh / voidscript.ahk
Created December 12, 2015 19:32
for all the voidpunks out there
A::Send A
B::Send A
C::Send A
D::Send A
E::Send A
F::Send A
G::Send A
H::Send A
I::Send A
J::Send A
@cblgh
cblgh / grepfind
Last active September 1, 2015 18:38
a grep alias to easily find stuff in folders
# part of my .zshrc
# looks for the pattern $2 in the folder $1 and its subfolders
# folder pattern
# usage: grepfind ~/.irclogs potato
#
# use quotes when searching for sentence fragments:
# grepfind ~/.irclogs "potato cannon"
function goGrepGO() {
@cblgh
cblgh / es.sh
Last active August 29, 2015 13:58 — forked from rajraj/es.sh
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share