Skip to content

Instantly share code, notes, and snippets.

View iTonyYo's full-sized avatar
🎯
Focusing

Whoami iTonyYo

🎯
Focusing
  • California
View GitHub Profile
increment = do ->
x = 0
->
x++
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
# show all changes of a file, work even if the file is deleted
git log -- docroot/user_bars/logo.png
# limit the output of Git log to the last commit, i.e. the commit which delete the file
# -1 to see only the last commit
# use 2 to see the last 2 commits etc
git -1 log -- docroot/user_bars/logo.png
# view the content of the file in a specific commit; note that the file is not deleted in that commit
git show f5ac172e docroot/user_bars/logo.png
@iTonyYo
iTonyYo / initialization.jade
Last active August 29, 2015 14:03
Global configuration & utility functions for web front-end project used Jade.
//
Build Passing.
Jade: 1.3.0+
Doctype: HTML5
#TODO[x]: Description
@iTonyYo
iTonyYo / public.stylesheet.jade
Last active August 29, 2015 14:03
Stylesheets that have to be linked in every page. Tags with jade template engine. Jade ' include ' allows you to insert the contents into another jade file simply.
//
Build Passing.
Doctype: HTML5
Jade: 1.3.0+
#TODO[X]: Public Stylesheet, Define
@iTonyYo
iTonyYo / ms.pinned.site.meta.jade
Created August 15, 2014 13:08
Windows 7+ pinned site metadata snippets. Jade ' include ' allows you to insert the contents into another jade file simply.
//
Build Passing.
Jade: 1.3.0+
Doctype: HTML5
#TODO[x]: Pinned Sites
/**
* This file/module contains all configuration for the build process.
*/
/**
* Load requires and directory resources
*/
var join = require('path').join,
bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})),
bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'),
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@iTonyYo
iTonyYo / vunits.js
Last active August 29, 2015 14:12 — forked from LeaVerou/vunits.js
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;