Skip to content

Instantly share code, notes, and snippets.

View irliao's full-sized avatar

Ryan Liao irliao

View GitHub Profile
@irliao
irliao / sVimrc.css
Last active October 27, 2018 09:51
/*
Gist ID is the hash at the last part of the url when viewing the gist.
Gist must be public so sVim can sync it.
*/
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
" Gist ID is the hash at the last part of the url when viewing the gist.
" Gist must be public so sVim can sync it.
" setting
set smoothscroll
let fullpagescrollpercent = 100
let homeurl = "favorites://"
let newtaburl = "favorites://"
let blacklists = ["*://github.com/*", "*://github.intuit.com/*"]
// Composition Example
// http://codepen.io/ericelliott/pen/XXzadQ?editors=001
// https://gist.github.com/ericelliott/fed0fd7a0d3388b06402
const distortion = { distortion: 1 };
const volume = { volume: 1 };
const cabinet = { cabinet: 'maple' };
const lowCut = { lowCut: 1 };
const inputLevel = { inputLevel: 1 };
// Class Inheritance Example
// NOT RECOMMENDED. Use object composition, instead.
// https://gist.github.com/ericelliott/b668ce0ad1ab540df915
// http://codepen.io/ericelliott/pen/pgdPOb?editors=001
class GuitarAmp {
constructor ({ cabinet = 'spruce', distortion = '1', volume = '0' } = {}) {
Object.assign(this, {
cabinet, distortion, volume
@irliao
irliao / prompt-user-input.sh
Created March 19, 2017 04:31
POSIX script to show how to prompt user input
#!/bin/sh
echo 'run script?'
read -r answer
case "$answer" in
y|Y) echo 'running script';;
*) echo 'skipping script';;
esac
echo 'finished script'
@irliao
irliao / zshrc.zsh
Last active February 28, 2016 03:01
zim
#
# User configuration sourced by interactive shells
#
# Source zim
if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
fi
skip_global_compinit=1 # faster Zsh startup
@irliao
irliao / zimrc.zsh
Created February 27, 2016 19:04
zim
#################
# CORE SETTINGS #
#################
#
# Zim settings
#
# Select what modules you would like enabled.
# The second line of modules may depend on options set by modules in the first line.