Skip to content

Instantly share code, notes, and snippets.

Glen Chiacchieri Glench

Block or report user

Report or block Glench

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 canvas_draw.html
<!DOCTYPE html>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
canvas {
View gist:b1a99b5e75d50e162411
var body = document.querySelector('body');
var styleNode = document.createElement('style');
var cssTextNode = document.createTextNode('#content a:visited { color: rgb(41, 229, 41) !important; }');
View img.js
var baseUrl = '';
var wikipedify = function(best_guess) {
return ''+best_guess;
var makeLink = function(href, text, title) {
return '<a href="'+href+'" target="_blank" title="'+title+'">'+text+'</a>';
$('img').each(function(i, img) {
var $img = $(img)
$.get(baseUrl+'?image_url='+window.location.href+img.getAttribute('src')).done(function(data) {
View music.txt
This file has been truncated, but you can view the full file.
Faster Pussy cat<SEP>Silent Night
Karkkiautomaatti<SEP>Tanssi vaan
Hudson Mohawke<SEP>No One Could Ever
Yerba Brava<SEP>Si Vos Querés
Der Mystic<SEP>Tangle Of Aspens
David Montgomery<SEP>Symphony No. 1 G minor "Sinfonie Serieuse"/Allegro con energia
Sasha / Turbulence<SEP>We Have Got Love
Kris Kross<SEP>2 Da Beat Ch'yall
Joseph Locke<SEP>Goodbye
import sys
import itertools
from pyquery import PyQuery as pq
def download_and_parse(wikipedia_url):
page = pq(url=wikipedia_url.strip())
key_values = {}
for tr in page('.infobox tr'):
tr = pq(tr)
cells = tr('th,td')
Glench / autocomplete.js
Last active Aug 29, 2015
allows you to change google's autocomplete to whatever you want >:) type into google to create an autocomplete list, then activate this bookmarklet
View autocomplete.js
Glench / gist:ce45454d8677247c7a8a
Created Jun 9, 2015
John Holt in "How Children Learn"
View gist:ce45454d8677247c7a8a
One of the puzzles we had in my fifth-grade class was a geometrical puzzle called Hako. You
began with a number of thin, flat, rectangular plastic pieces arranged a certain way in a
shallow box. The aim was to slide them around, without turning them or lifting them out of
the box, so as to finish with the largest piece, a square, at the opposite end of the box from
which it started. Though I spent many hours on it, I was never able to do it. This exasperated
me. What exasperated me even more was that I seemed to be able to prove that the puzzle was
impossible--though I knew it was not. Like most people, I began by moving the pieces around
in a kind of blind, haphazard way. Before long, and unwisely, I grew impatient with this.
There were too many possible moves, this could go on forever. The thing to do was use the
brain and figure it out. So, moving the pieces very carefully, and analyzing each move, I
View display.html
<script src="underscore-min.js"></script>
<script src="jquery-1.11.0.min.js"></script>
<script type="text/javascript">
ws = new WebSocket("ws://puku.local:8001");
ws.onmessage = function(evt) {
$('#display').html('<img src="'+ +'"/>')
Glench / gist:90c0bc0905c87a7cebae
Last active Sep 19, 2015
Sacred Economics, page 198
View gist:90c0bc0905c87a7cebae

I am writing at this moment in a large airport. Thousands of people work at jobs associated with this airport, and few of the jobs actually befit a human being.

I traveled to the airport in a hotel shuttle. On the way I told the driver, a Peruvian immigrant, about the talk I had given this weekend and about my vision of a more beautiful world, and at one point, by way of illustration, I said, “Here you are driving back and forth to the airport all day—surely you must have moments when you think, ‘I was not put here on earth to do this.’”

“Yeah, that’s for sure,” he said.

I can’t help but think the same as I watch the cashier at the airport kiosk, typing in purchase items and handing out change and saying, “Thank you sir, have a nice day,” and the man going from trash can to trash can, emptying them into his cart and changing the plastic bag, silent and sullen, wooden-faced. What kind of world have we created, that a human being spends all day doing such tasks? What have we become, that we ar

Glench /
Created Apr 2, 2012 — forked from jmondo/
Setting up Rails server environment on Ubuntu 11.10

Setting up Rails server environment on Ubuntu 11.10

Including Rails, Passenger, RVM, Ruby 1.9.3, SSH keys, Postgres and a test app


  • This is tested on a clean install of Ubuntu 11.10 server (with SSH root access), though it should work on whatever install you have now.
  • Replace LOGIN with your ubuntu username
  • Replace SERVER_ADDRESS with the IP address of your server
You can’t perform that action at this time.