Javascript code that calculates how much active time is spent on a tab and takes into account changing tabs, switching windows, or leaving the page.
Demo here http://bl.ocks.org/d/4393523/
| <form action="{% url %}" method="post" enctype="multipart/form-data">{% csrf_token %} | |
| <input type="file" name="csv_file" /> | |
| <input type="submit" value="Upload" /> | |
| </form> |
| [alias] | |
| random = !"git add -A; git commit -am \"$(echo $(curl -s http://whatthecommit.com/index.txt)\" (http://whatthecommit.com)\")\"; git pull --rebase; git push" |
Javascript code that calculates how much active time is spent on a tab and takes into account changing tabs, switching windows, or leaving the page.
Demo here http://bl.ocks.org/d/4393523/
CSS3 Animation that fades in the content from the bottom up.
Demo here http://bl.ocks.org/4401674/
Full credit to Pedro Ivo Hudson for the The Goodman
CSS3 Animation that fades out the content going up.
Demo here http://bl.ocks.org/4402060/
Full credit to Pedro Ivo Hudson for the The Goodman
CSS3 Animation that bounces into the air any element naturally.
Demo here http://bl.ocks.org/4402301/
Full credit to Pedro Ivo Hudson for the The Goodman
CSS3 Animation that rotates any element naturally.
Demo here http://bl.ocks.org/4402407/
Full credit to Pedro Ivo Hudson for the The Goodman
| import Foundation | |
| extension UIFont { | |
| class func systemFontOfSize(size: CGFloat) -> UIFont { | |
| return UIFont(name: "HelveticaNeue", size: size)! | |
| } | |
| class func italicSystemFontOfSize(size: CGFloat) -> UIFont { | |
| return UIFont(name: "HelveticaNeue-Italic", size: size)! | |
| } |
| // | |
| // Device.swift | |
| // imHome | |
| // | |
| // Created by Kevin Xu on 2/9/15. Updated on 6/20/15. | |
| // Copyright (c) 2015 Alpha Labs, Inc. All rights reserved. | |
| // | |
| import Foundation |
| if [ -z "${PROJECT_DIR}" ]; then | |
| PROJECT_DIR=`pwd` | |
| fi | |
| if [ -z "${PREFIX}" ]; then | |
| PREFIX="" | |
| fi | |
| SVN_DIR="${PROJECT_DIR}/.svn" | |
| GIT_DIR="${PROJECT_DIR}/.git" |