Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 16:07 (UTC -07:00)
View GitHub Profile
-20 Normal ~9.53674\times10^-7 ~1.90734\times10^-6 ~1.05879\times10^-22 ~2.11758\times10^-22
Carry ~4.23516\times10^-22
-17 Normal ~7.62939\times10^-6 ~1.52587\times10^-5 ~8.47032\times10^-22 ~1.69406\times10^-21
Carry ~3.38813\times10^-21
-14 Normal ~6.10351\times10^-5 ~1.22070\times10^-4 ~6.77626\times10^-21 ~1.35525\times10^-20
Carry ~2.71050\times10^-20
-11 Normal ~4.88281\times10^-4 ~9.76562\times10^-4 ~5.42101\times10^-20 ~1.08420\times10^-19
Carry ~2.16840\times10^-19
-8 Normal ~3.90625\times10^-3 ~7.81249\times10^-3 ~4.33680\times10^-19 ~8.67361\times10^-19
Carry ~1.73472\times10^-18
-20 Normal ~9.53674e-7 ~1.90734e-6 ~1.05879e-22 ~2.11758e-22
-20 Carry ~4.23516e-22
module.exports = function (options) {
return {
lex: {
advance: function(lexer) {
return this.php(lexer);
},
php: function(lexer) {
var tok = lexer.scanEndOfLine(/^@([^\n]+)/, 'php-code');
if (tok) {
lexer.tokens.push(tok);
@TimothyGu
TimothyGu / .vimrc
Last active October 24, 2015 19:43
set lazyredraw
set cursorline
set cursorcolumn
set hlsearch
set relativenumber
let mapleader = ","
nmap <Leader><CR> O<Esc>
;******************************************************************************
;* SIMD-optimized HuffYUV encoding functions
;* Copyright (c) 2000, 2001 Fabrice Bellard
;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
;* Ported to NASM syntax by Tiancheng "Timothy" Gu <timothygu99@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
#!/bin/sh
set -e
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
cd ~/.vim/bundle
git clone --depth=1 https://github.com/tpope/vim-sensible.git &
git clone --depth=1 https://github.com/tomtom/tcomment_vim.git &
git clone --depth=1 https://github.com/Raimondi/delimitMate.git &
var oneVar = 0
, another = 1;
, addingAnotherOne = 2;

The Holy Scripture

By Albert Lee.

Draft 4/27/2015.

First Letter to the Santa Margaritans

@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):

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',