This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |