Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 17:51 (UTC -07:00)
View GitHub Profile
CC=gcc
CFLAGS=-g -O2 -Wall -ISource $(OPTFLAGS)
SOURCES=$(wildcard Source/*.c)
OBJECTS=$(patsubst %.c,%.o,$(SOURCES))
GUISOURCES=Source/Main.cpp
GUIEXE=bin/AGMSAVLTest
TARGET=build/libavlduptree.so
Chapter 20: Northern Eurasia, 1500-1800
During the period of European exploration and trading, different Eurasian empires chose different routes for handling new inventions and their own heritage, which leads to either success or decline later in history.
I. Japan Reunification
Japan underwent major political and social changes, from a more medieval-like homogeneous samurai society, to a modern society with civil laws overriding traditions.
A. Civil War and the Invasion of Korea, 1500-1603
During the 1500-1800, the Japanese islands were unified by a feudal system composed of by the samurais, the daimyos, and the Shogun. Hideyoshi, a successful warlord, attempted to invade the mainland and Korea.
B. The Tokugawa Shogunate, to 1800
@TimothyGu
TimothyGu / bench.js
Last active August 29, 2015 14:14
EJS benchmark
var suite = new (require('benchmark').Suite)
, ejs1 = require('ejs') // npm install ejs@1.0.0
, ejs2 = require('./../ejs') // npm install ejs@2.2.3
, newEjs2 = require('./../ejs-tj') // npm install ejs-tj@2.2.3-beta.1
var str = ' <% for (var i = 0; i < data.length; i++) { %>\n'
+ ' <% var objects = data[i] %>\n'
+ ' <h1><%= objects.title %></h1>\n'
+ ' <% for (var j = 0; j < objects.length; j++) { %>\n'
+ ' <% var obj = objects[j] %>\n'
@TimothyGu
TimothyGu / a.md
Last active August 29, 2015 14:16

Mini search engine written in JavaScript for a web page

For Gustavo E. Zertuche.

Happy birthday.

Licensed under the MIT license.

Feb 25 2015 DBQ Outline

Imperialistic attitude toward Africans

Documents 1, 4, 5, 7

Eyewitness accounts toward imperialism

Day Due ($) Total ($)
0 0.00 1000.00
1 100.00 1900.00
2 200.00 3600.00
3 400.00 6800.00
4 800.00 12800.00
5 1600.00 24000.00
6 3200.00 44800.00
7 6400.00 83200.00
8 12800.00 153600.00
mixin n(p)
p= p
//- there is a trailing tab following `)`; GitHub eats tabs
+n('dfasdf')

All tests run on fate.ffmpeg.org.

Using io.js 1.6.4:

> process.versions
{ http_parser: '2.3.0',
  node: '1.6.4',
  v8: '4.1.0.27',
  uv: '1.4.2',
@TimothyGu
TimothyGu / haiku.md
Last active January 14, 2016 06:19
Installing Haiku

Installing

  1. Download image

  2. Create bigger image:

    qemu-img create -f qcow2 haiku-64.img 9G
  3. Boot (3 CPUs, 2 GiB RAM):

The Holy Scripture

By Albert Lee.

Draft 4/27/2015.

First Letter to the Santa Margaritans