Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 12:29 (UTC -07:00)
View GitHub Profile
var oneVar = 0
, another = 1;
, addingAnotherOne = 2;
#!/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 &
;******************************************************************************
;* 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
@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>
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);
-20 Normal ~9.53674e-7 ~1.90734e-6 ~1.05879e-22 ~2.11758e-22
-20 Carry ~4.23516e-22
-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 ~9.53674\times10^-7 ~1.90734\times10^-6 ~1.05879\times10^-22 ~2.11758\times10^-22
-17 ~7.62939\times10^-6 ~1.52587\times10^-5 ~8.47032\times10^-22 ~1.69406\times10^-21
-14 ~6.10351\times10^-5 ~1.22070\times10^-4 ~6.77626\times10^-21 ~1.35525\times10^-20
-11 ~4.88281\times10^-4 ~9.76562\times10^-4 ~5.42101\times10^-20 ~1.08420\times10^-19
-8 ~3.90625\times10^-3 ~7.81249\times10^-3 ~4.33680\times10^-19 ~8.67361\times10^-19
-5 ~3.12500\times10^-2 ~6.24999\times10^-2 ~3.46944\times10^-18 ~6.93889\times10^-18
-2 ~2.50000\times10^-1 ~4.99999\times10^-1 ~2.77555\times10^-17 ~5.55111\times10^-17
1 ~2.00000\times10^0 ~3.99999\times10^0 ~2.22044\times10^-16 ~4.44089\times10^-16
4 ~1.60000\times10^1 ~3.19999\times10^1 ~1.77635\times10^-15 ~3.55271\times10^-15
7 ~1.28000\times10^2 ~2.55999\times10^2 ~1.42108\times10^-14 ~2.84217\times10^-14
@TimothyGu
TimothyGu / index.html
Created August 2, 2016 22:49 — forked from RubaXa/index.html
for-in vs. Object.keys (uncached) (http://jsbench.github.io/#5905cad9488ab4d470ad7a5818aebc2f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for-in vs. Object.keys (uncached)</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
{
"name": "posthtml-pug",
"version": "1.0.0",
"description": "PostHTML Pug parser",
"main": "index.js",
"dependencies": {
"constantinople": "^3.1.0",
"isobject": "^2.1.0",
"object-assign": "^4.1.0",
"pug": "^2.0.0-beta5",