Skip to content

Instantly share code, notes, and snippets.

Edward Chu chuyik

View GitHub Profile
chuyik / app.html
Created Sep 6, 2014
Angular Learning
View app.html
<button ng-click="startRoute()">Route to Guangdong/canton</button>
chuyik /
Last active Aug 29, 2015
oh-my-zsh cheatsheet


  • md - aliases mkdir -p
  • rd - aliases rmdir
  • d - aliases dirs -v, lists last used directories
  • j -s - print out the stat of autojump
  • x/extract - extract an archive


  • tab - open the current directory in a new tab
  • pfd - return the path of the frontmost Finder window
chuyik /
Last active Aug 29, 2015
How to debug node app

Debug Node App

node --debug index
node-inspector index

Debug Node App with nodemon

Monitor any changes and reload the app

nodemon --debug index
View dabblet.css
/* CSS States */
h1 {
font-family: Helvetica, Arial, sans-serif;
text-align: center;
font-size: 1.6em;
.device {
display: inline-block;
position: relative;
View urls
View dabblet.css
.wrap {}
.btn {padding: 10px;}
.up:active ~ .char {
margin-top: -84px;
.down:active ~ .char {
margin-top: 84px;
chuyik /
Last active Sep 6, 2015 — forked from mcbrwr/
fix for "svn pristine text not present" error in a working copy
# for an "svn pristine text not present" error like this:
# svn: E155010: Pristine text 'd6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8' not present
# you can delete the file and retrieve it with svn up
# (if you have local modifications, make up your own plan)
# -
# Run this script from the root of the working copy.
# It retrieves the file that's causing the error from wc.db
# usage example : ./ d6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8
chuyik / index.html
Created Jul 31, 2014
Simultaneous Ajax Demo of AngularJS
View index.html
<!DOCTYPE html>
<html ng-app="demoApp">
<script data-require="angular.js@1.3.0-beta.5" data-semver="1.3.0-beta.5" src=""></script>
<body ng-controller="mainCtrl">
<h1>Simultaneous Ajax Demo of AngularJS</h1>
<div>status: {{ status }}</div>
chuyik / detect-pesudo-animation.js
Last active Nov 27, 2015
Detect CSS Animation support on :before :after pseudo-elements with javascript
View detect-pesudo-animation.js
* Inspired from:
var addCssRule = function(selector, rule) {
if (document.styleSheets) {
if (!document.styleSheets.length) {
var head = document.getElementsByTagName('head')[0];
chuyik / js_questions.js
Last active Mar 7, 2016
Interesting Quirkly Javascript Questions Collection (Planed to be used for interview)
View js_questions.js
/* ================== */
* Concepts:
* Global Context
* Chained Assignment
var x = 1;
var y = 2;
var z = 3;
You can’t perform that action at this time.