Skip to content

Instantly share code, notes, and snippets.

int size = 30;
boolean change = true;
void setup() {
size(500, 500);
frameRate(60);
textAlign(CENTER);
}
void draw() {
1
2
3
4
5
6
7
8
9
10
@jhowliu
jhowliu / test.js
Last active August 29, 2015 14:02
var updateEvent = function(obj) {
chrome.extension.sendMessage({
action: "updateCurrentVol",
obj: obj
}, function (res) {
console.log(res);
});
}
user_data = {
29 50 5 7260 437 1 4 14 1 0 6 5a9ed9b0 a0e12995 a1e14474 08a40877 25c83c98 964d1fdd 5b392875 a73ee510 de89c3d2 59cd5ae7 8d98db20 8b216f7b 1adce6ef 78c64a1d 3ecdadf7 3486227d 1616f155 21ddcdc9 5840adea 2c277e62 423fab69 54c91918 9b3e8820 e75c9ae9
@jhowliu
jhowliu / KP.txt
Last active August 29, 2015 14:11
PxG Keywords
貯水池
馬習會
權力
人群
學生家長
首歌
政治理念
降溫
班底
依法行事
@jhowliu
jhowliu / Cluster0.txt
Last active August 29, 2015 14:11
Clustering Result
652438848137404_717410308306924
652438848137404_717793378268617
652438848137404_718838321497456
652438848137404_718881258159829
652438848137404_719146421466646
652438848137404_719591974755424
652438848137404_721253167922638
652438848137404_721346157913339
652438848137404_721814031199885
652438848137404_722089691172319
We can't make this file beautiful and searchable because it's too large.
0,152,16356,200,-73,90,-42,16,94,105,15,10,2
1,536,16536,504,-84,481,-77,0,0,116,0,10,2
2,516,16352,436,-38,1284,-44,0,0,188,0,10,2
3,852,16396,1156,70,2357,-16,19,119,268,19,10,2
4,824,16268,1064,265,3684,27,21,127,318,21,10,2
5,696,16448,1592,442,5139,127,23,136,356,23,10,2
6,568,16588,1124,307,6518,47,24,145,405,25,10,2
7,848,16756,1156,4,7838,-27,26,151,430,26,10,2
8,584,16440,736,-127,9044,-123,27,157,449,28,10,2
9,828,16548,440,-127,10057,-134,29,164,452,29,10,2
@jhowliu
jhowliu / decorator.py
Last active August 29, 2015 14:14
Decorator example
# Function Decorator
def Logged(f):
def wrapper():
print f.__name__
return f
# Class Decorator
class decorator():
def __init__(self, f):
print "Initialzing decorator"
@jhowliu
jhowliu / MapReduceNote.md
Last active August 29, 2015 14:15
Note For MapReduce By Google, Inc.

Note For MapReduce Framework By Google Inc.

Introduction

Purpose

  • Process large amounts of raw data.(Web request log、crawled document)
  • Process various kinds of derived data。(Inverted index

Operators

  • Map:The Map function takes a series of key/value pairs, processes each, and generates zero or more output key/value pairs.
@jhowliu
jhowliu / .gitignore
Last active August 29, 2015 14:20
Find Maximum Chords
out.txt
a.out