Skip to content

Instantly share code, notes, and snippets.

@WallaceTan
WallaceTan / 0_reuse_code.js
Created March 28, 2014 02:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@WallaceTan
WallaceTan / javascript_resources.md
Created March 28, 2014 02:01 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@WallaceTan
WallaceTan / css_resources.md
Created March 28, 2014 02:01 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@WallaceTan
WallaceTan / gist:10943641
Last active August 29, 2015 13:59 — forked from lucasfais/gist:1207002
Sublime Text 2 – Useful Shortcuts (Mac OS X)

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
@WallaceTan
WallaceTan / Install_tmux
Last active August 29, 2015 14:09 — forked from simme/Install_tmux
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@WallaceTan
WallaceTan / .vimrc
Last active August 29, 2015 14:17 — forked from ralphcrisostomo/.vimrc
set nocompatible
call pathogen#infect()
call pathogen#helptags()
let mapleader = ","
syntax enable
" Mappings {{{
" Insert mode mappings {{{
#!/bin/ash
export PATH=/usr/bin:/usr/sbin:/bin:/sbin
export LOCKFILE=/tmp/vpncheck.pid
export LOGFILE=/var/log/vpncheck.log
checktun() {
ifconfig | grep -q tun && return 1
return 0
}
@WallaceTan
WallaceTan / install-packer-on-mac-os.sh
Last active January 8, 2016 03:01 — forked from akora/install-packer-on-mac-os.sh
Install packer on Mac OS
install-packer-on-mac-os.sh
curl -O -L https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_darwin_amd64.zip
unzip packer_0.8.6_darwin_amd64.zip
sudo mv packer_0.8.6_darwin_amd64 /usr/local/packer
# then update your .bash_profile with the new path e.g.:
# export PATH="$PATH:/usr/local/packer"
@WallaceTan
WallaceTan / EditEnvironmentVariables.cmd
Last active February 23, 2016 06:28
Windows command to open Environment Variables window
My Computer / Properties / Advanced / Environment Variables.
Changes there take effect immediately except for already open command prompt windows. No need to log out and back in.
NOTE: If you don't have access to that window, you might be able to get it by running
C:\> rundll32 sysdm.cpl,EditEnvironmentVariables
from the Run window or command-line.
--- http://serverfault.com/a/33720/94341