Skip to content

Instantly share code, notes, and snippets.

<table cellpadding="0">
<thead>
<tr>
<th>Family size</th>
<th>Income in a year</th>
<th>Income in a month</th>
<th>Income in a week</th>
</tr>
</thead>
<tbody>
@SongHia
SongHia / gist:c92a2ff4a89714de175e
Created October 14, 2015 21:56 — forked from mharju/gist:3805082
Unknown pleasures album cover visualization for Processing. This is the version in http://www.youtube.com/watch?v=nYOh_laT4_Q
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
Minim minim;
AudioPlayer player;
AudioInput input;
FFT fft;
@SongHia
SongHia / fandom.json
Created September 10, 2015 21:10
Fandom JSON
{
"ghostbusters": {
"age introduced": 4,
"current fandom level": 0
},
"video games": {
"age introduced": 7,
"current fandom level": 2
},
"comics": {
104: new 104 new
75: first 75 first
66: other 66 other
65: good 65 good
58: own 58 own
51: small 51 small
51: hard 51 hard
51: much 51 much
46: same 46 same
44: few 44 few
@SongHia
SongHia / Circle.pde
Last active August 29, 2015 14:20
Hueman: Music Visualization
class Circle
{
float circleSize; //change circle size
float h, s, b, a;
float strokeWeight;
boolean dynamicSizeOn = false;
Circle()
{
@SongHia
SongHia / adjectives
Created April 8, 2015 19:05
Shroomify - RWET Homework
abacterial
abactinal
abandoned
abarticular
abased
abashed
abasic
abatable
abatic
abaxial
@SongHia
SongHia / hashtag_poem.py
Last active August 29, 2015 14:17
Fibonacci Valley Hashtag Poetry
import sys
import random
import time
import twython
api_key, api_secret, access_token, token_secret = sys.argv[1:]
twitter = twython.Twython(api_key, api_secret, access_token, token_secret)
@SongHia
SongHia / Vehicle.pde
Last active August 29, 2015 14:17
Eye Swarm
// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
class Vehicle {
// All the usual stuff
PVector location;
PVector velocity;
PVector acceleration;
@SongHia
SongHia / Vehicle.pde
Created March 23, 2015 14:18
Eye Drawing
class Vehicle
{
ArrayList<PVector> history = new ArrayList<PVector>();
PVector location;
PVector velocity;
PVector acceleration;
float r;
float maxForce;
float maxSpeed;
@SongHia
SongHia / exD.py
Created March 21, 2015 22:29
RWET HW Week 7
#
# Worksheet #4
#
# This worksheet is also a Python program. Your task is to read the
# task descriptions below and then write one or more Python statements to
# carry out the tasks. There's a Python "print" statement before each
# task that will display the expected output for that task; you can use
# this to ensure that your statements are correct.
#
# In this worksheet, some of the tasks will throw an error that causes