Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:ca0e6a2ae70b38d2bba4
Created August 4, 2014 11:11
'pulse'
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
@M66B
M66B / gist:62793616a6359886d4c8
Last active April 1, 2017 04:37
Acer C720 fix tearing
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection
Settings > Window Manager Tweaks > Enable display compositing
@rogerallen
rogerallen / leip_polyrhythm.clj
Created April 30, 2013 15:57
Fun with Leipzig/Overtone & Polyrhythms
(ns explore-overtone.leip-polyrhythm
(:require [overtone.live :as o]
[leipzig.live :as ll]
[leipzig.melody :as lm]))
(def snare (o/sample (o/freesound-path 26903)))
(def kick (o/sample (o/freesound-path 2086)))
(def close-hihat (o/sample (o/freesound-path 802)))
(def open-hihat (o/sample (o/freesound-path 26657)))
(def clap (o/sample (o/freesound-path 48310)))
@sattvik
sattvik / HelloActivity.clj
Created April 11, 2012 18:57
HelloActivity.clj
(ns com.example.hello_clojure.HelloActivity
(:gen-class :main false
:extends android.app.Activity
:exposes-methods {onCreate superOnCreate})
(:import [com.example.hello_clojure R$layout]))
(defn -onCreate
[this bundle]
(doto this
(.superOnCreate bundle)
anonymous
anonymous / ec2unifiedshell.py
Created January 20, 2010 01:39
#!/usr/bin/python
WhatThisIS="""
This is a hacked together script to connect to all of your running EC2 instances, and to provide a single SSH prompt amongst all of them, and to assist in uploading, splitting, and downloading files. email me at winniningham at and email server called gmail.com :P
"""
import paramiko
from numpy import *