Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 15:17 (UTC -07:00)
View GitHub Profile
mixin n(p)
p= p
//- there is a trailing tab following `)`; GitHub eats tabs
+n('dfasdf')
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

Feb 25 2015 DBQ Outline

Imperialistic attitude toward Africans

Documents 1, 4, 5, 7

Eyewitness accounts toward imperialism

@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.

@TimothyGu
TimothyGu / bench.js
Last active August 29, 2015 14:14
EJS benchmark
var suite = new (require('benchmark').Suite)
, ejs1 = require('ejs') // npm install [email protected]
, ejs2 = require('./../ejs') // npm install [email protected]
, newEjs2 = require('./../ejs-tj') // npm install [email protected]
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'
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
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

GCI Haikuporter Packaging Reflection

Tiancheng "Timothy" Gu

Challenges

Prior to GCI 2014, I already have some experiences in packaging because my involvement in the [MXE][1] project. The way haikuports operates is very similar to MXE (which uses a makefile-based system), so it was not extremely hard for me get started in the packaging fun.

Chapter 18: The Atlantic System and Africa
I. Plantation in the West Indies
Plantations in the West Indies first started out to be successful tobacco
growers, but soon transitioned to sugar cane, a crop more fit for the
climate.
A. Colonization Before 1650
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.