Skip to content

Instantly share code, notes, and snippets.

Edward Chu chuyik

Block or report user

Report or block chuyik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 / 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;
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
chuyik / index.html
Created Nov 27, 2014
AngularJS simple implementation
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
Input: <input type="text" ng-model="hello"><br>
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;
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];
View urls
View dabblet.css
.wrap {}
.btn {padding: 10px;}
.up:active ~ .char {
margin-top: -84px;
.down:active ~ .char {
margin-top: 84px;
You can’t perform that action at this time.