Skip to content

Instantly share code, notes, and snippets.

View makzan's full-sized avatar
🎯
Focusing

Thomas Seng Hin Mak makzan

🎯
Focusing
View GitHub Profile
@makzan
makzan / example
Last active August 29, 2015 14:27
https://www.dropbox.com/s/nmh10tmsdkto1u1/Testing%20Client%20A.zip?dl=0
@makzan
makzan / Remark.txt
Last active September 3, 2020 22:22
Comparing an article written in AsciiDoc and Markdown.
1. I like the AsciiDoc that uses `+` to connect paragraphs inside list item, instead of adding indent in markdown.
2. The URL example `:1:` in AsciiDoc looks similar to `[1]` in markdown. But actually `:1:` is a variable that can be used any where.
3. This is just a simple comparasion for a simple document. I find markdown is good enough for a short article writing. On the other hands, AsciiDoc is better for longer writings.
@makzan
makzan / Utility: Retina for CreateJS.markdown
Created October 20, 2015 13:09
Utility: Retina for CreateJS
@makzan
makzan / tween-example.js
Created December 8, 2015 23:24
Tween.JS example
// data tweening
createjs.Tween.get({opacity:0,x:0}, {loop:true, onChange:render})
.to({opacity: 0.9, x:200}, 300, createjs.Ease.bounceOut)
.to({opacity: 0.3}, 300, createjs.Ease.easeOut)
.wait(200)
.to({opacity: 0.9}, 300, createjs.Ease.easeOut)
.to({opacity: 0, x:0}, 300, createjs.Ease.easeOut)
.wait(1000)
// view rendering
@makzan
makzan / demo-switch-toggle.html
Created December 15, 2015 15:30
Switch Toggle for blog post
<div class="switch-toggle switch-candy">
<input id="week" name="view" type="radio" checked>
<label for="week" onclick="">Week</label>
<input id="month" name="view" type="radio">
<label for="month" onclick="">Month</label>
<input id="day" name="view" type="radio">
<label for="day" onclick="">Day</label>
@makzan
makzan / .gitconfig
Created December 16, 2015 05:06
My Git alias config
[alias]
s = status -s
st = status
lg = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)&lt;%an&gt;%Creset' --abbrev-commit
ll = log --all --color --oneline --graph --decorate
@makzan
makzan / tweenjs-example.js
Created December 16, 2015 09:35
TweenJS Example
// data tweening
createjs.Tween.get({opacity:0,x:0}, {loop:true, onChange:render})
.to({opacity: 0.9, x:200}, 300, createjs.Ease.bounceOut)
.to({opacity: 0.3}, 300, createjs.Ease.easeOut)
.wait(200)
.to({opacity: 0.9}, 300, createjs.Ease.easeOut)
.to({opacity: 0, x:0}, 300, createjs.Ease.easeOut)
.wait(1000)
// view rendering
@makzan
makzan / gist:ec28473b2ea3248cc035
Last active December 23, 2015 04:56
Avoid this in web page
<meta content='width=device-width, minimum-scale=1, maximum-scale=1' name='viewport'>
@makzan
makzan / .gitconfig
Last active December 28, 2015 04:49
Git config for my c9 IDE
[user]
name = Thomas Seng Hin Mak
email = mak@makzan.net
[core]
editor = nano
whitespace = off
excludesfile = ~/.gitignore
[advice]
statusuoption = false
[color]
@makzan
makzan / createjs-starting-point-with-retinalize.js
Created January 1, 2016 05:05
CreateJS starting point with Retina support
class App {
constructor() {
this.canvas = document.getElementById("app-canvas");
this.stage = new createjs.Stage(this.canvas);
this.retinalize();
createjs.Ticker.setFPS(60);