Skip to content

Instantly share code, notes, and snippets.

@jhowliu
jhowliu / tess
Created July 30, 2015 07:35
dependency
ss
@jhowliu
jhowliu / Han.csv
Last active August 29, 2015 14:24
Data
44 -16408 904 -48 -102 100 1360791
-8 -16408 832 -43 -125 113 1360865
0 -16372 844 -35 -113 110 1360936
168 -16364 780 -15 -119 67 1361008
104 -16356 696 -35 -152 90 1361082
12 -16444 852 -27 -101 122 1361156
132 -16464 772 -23 -122 124 1361227
60 -16420 884 -54 -130 90 1361301
40 -16420 872 -45 -133 129 1361373
28 -16396 668 -9 -99 68 1361446
import serial
if __name__ == '__main__':
ser = serial.Serial(SerialPort, Baud)
line = ser.readline()
while line
line = ser.readline()
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@jhowliu
jhowliu / HW2_Sol.tex
Last active August 29, 2015 14:21
NumericalAnalysisSolution2
\documentclass[12pt]{article}
\usepackage{amsmath}
\title{Numerical Analysis Homework 2 Solution}
\begin{document}
\begin{enumerate}
\item
\begin{enumerate}
\item Find $f(0.43)$
\begin{enumerate}
@jhowliu
jhowliu / .gitignore
Last active August 29, 2015 14:20
Find Maximum Chords
out.txt
a.out
@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 / 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"
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