Skip to content

Instantly share code, notes, and snippets.

View zeroliu's full-sized avatar
🏠
Working from home

Zero Liu zeroliu

🏠
Working from home
  • Lumos
  • San Francisco
View GitHub Profile
@zeroliu
zeroliu / ff_idb.html
Created September 29, 2020 23:03
FF IDB object store not found
<!DOCTYPE html>
<body>
<script>
function createDb() {
return new Promise((resolve, reject) => {
const openRequest = indexedDB.open("test-idb-ff-error", 1);
openRequest.addEventListener("success", () => {
console.log('open succeeded');
const db = openRequest.result;
@zeroliu
zeroliu / tmux.config
Created March 14, 2015 20:46
tmux config
# References:
# https://bitbucket.org/sjl/dotfiles/src/a0e689e096eb96c2c60d4072b24ad2cd5ec2d629/tmux/tmux.conf?at=default
# Use something easier to type as the prefix.
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Relax! - vim escape doesn't lag
set -sg escape-time 0
@zeroliu
zeroliu / vimrc
Last active August 29, 2015 14:17
Vimrc
" Basic settings ----{{{
set rtp+=~/.vim/bundle/Vundle.vim
syntax on
set nocompatible
set t_Co=256
set history=1000
set background=dark
" Enable invisible characters
IntervalST.java
Below is the syntax highlighted version of IntervalST.java from §7.3 Geometric Intersection.
/*************************************************************************
* Compilation: javac IntervalST.java
* Execution: java IntervalST
* Dependencies: Interval1D.java
#!/bin/bash
# Constants
PUMP="$HOME/.pump"
PUMP_REPO="git@git.gree-dev.net:zero-liu/art-tool.git"
mkdir -p "$PUMP" "$HOME/bin"
log_error(){
local colors="\033[31m[x] $1\033[0m\n"
local nocolors="[x] $1\n"