Skip to content

Instantly share code, notes, and snippets.

View avorio's full-sized avatar

André Avorio avorio

View GitHub Profile
@avorio
avorio / .json
Created November 27, 2015 12:37
Metawork: The Seasons, by Haydn
[
{
"asp_community": [
"Classical Music"
],
"asp_group": [
"Music & Performing Arts"
],
"birth_date": [
"1732-03-31",
@avorio
avorio / index.html
Created October 15, 2015 11:34 — forked from mbostock/.block
Connected Particles III
<!DOCTYPE html>
<meta charset="utf-8">
<canvas width="960" height="500"></canvas>
<script>
/* https://github.com/d3/d3-timer Copyright 2015 Mike Bostock */
"undefined"==typeof requestAnimationFrame&&(requestAnimationFrame="undefined"!=typeof window&&(window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame)||function(e){return setTimeout(e,17)}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.timer={})}(this,function(e){"use strict";function n(){r=m=0,c=1/0,t(u())}function t(e){if(!r){var t=e-Date.now();t>24?c>e&&(m&&clearTimeout(m),m=setTimeout(n,t),c=e):(m&&(m=clearTimeout(m),c=1/0),r=requestAnimationFrame(n))}}function i(e,n,i){i=null==i?Date.now():+i,null!=n&&(i+=+n);var o={callback:e,time:i,flush:!1,next:null};a?a.next=o:f=o,a=o,t(i)}function o(e,n,t){t=null==t?Date.now():+t,null!=n&&(t+=+n),l.callback=e,l.time=t}function u(e){e=null==e?D
@avorio
avorio / outlineColumns.plist
Created September 21, 2015 12:40
Display better Subjects in MailMate
# See http://manual.mailmate-app.com/customization#messagesoutline
# Save this file as ~/Library/Application Support/MailMate/Resources/MmMessagesOutlineView/outlineColumns.plist
{
columns =
{
subject =
{
title = "Subject";
sortKey = "subject.blob,subject.body,subject.prefix";
@avorio
avorio / DJANGO_SECRET_KEY.py
Created August 3, 2015 16:36
Generate Django SECRET_KEY
import random, string;
''.join([random.SystemRandom().choice("{}{}{}".format(string.ascii_letters, string.digits, string.punctuation)) for i in range(50)]);
@avorio
avorio / gist:f732f1733b03e04e411b
Created March 7, 2015 11:32
Sending links to Colette using a bookmarklet
javascript: var siteURL='colette', nodeType='link', d=document, w=window, e=w.getSelection, k=d.getSelection, x=d.selection, s=(e?e():(k)?k():(x?x.createRange().text:0)), l=d.location, e=encodeURIComponent, url='http://'+siteURL+'/node/add/'+nodeType+'?edit[title]='+e(d.title); if(s) { url+='&edit[body][und][0][value]='+e(s); url+='&edit[field_url][und][0][url]='+l;} a=function(){if(!w.open(url,'quickpost','toolbar=0,resizable=1,scrollbars=1,status=1,width=1024,height=570')) l.href=url;}; if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();void(0)
### Keybase proof
I hereby claim:
* I am avorio on github.
* I am avorio (https://keybase.io/avorio) on keybase.
* I have a public key whose fingerprint is 4AEF 97CB EC14 5811 FA53 30AD 84C9 3561 5BB7 B959
To claim this, I am signing this object: