This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>loading</title> | |
</head> | |
<body> | |
<style type="text/css"> | |
@keyframes rotate-loading { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>transition</title> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/base-min.css"> | |
<style type="text/css"> | |
.sc { | |
margin-top: .6em; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>first-screen</title> | |
<style type="text/css"> | |
body { | |
padding: 0; | |
margin: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>css3-transition-box-shadow</title> | |
<link rel="stylesheet" href="http://necolas.github.io/normalize.css/3.0.1/normalize.css"> | |
<style type="text/css"> | |
.list { | |
margin-top: 60px; | |
border-left: 1px solid #E8E8E8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list = new Array("Bulgaria", "93.123.23.1/59", | |
"Egypt", "197.199.253.1/59", | |
"Egypt", "197.199.254.1/59", | |
"Hong Kong", "218.189.25.129/187", | |
"Hong Kong", "218.253.0.76/92", "218.253.0.140/187", | |
"Iceland", "149.126.86.1/59", | |
"Indonesia", "111.92.162.4/6", "111.92.162.12/59", | |
"Iraq", "62.201.216.196/251", | |
"Japan", "106.162.192.132/187", | |
"Japan", "106.162.198.68/123", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable full keyboard access for all controls | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
# Disable menu bar transparency | |
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
# Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons | |
defaults write com.apple.finder QuitMenuItem -bool true | |
# Avoid creating .DS_Store files on network volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* http://blog.teamtreehouse.com/box-sizing-secret-simple-css-layouts#comment-50223 | |
*/ | |
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var quickSort = function(arr){ | |
if ( arr.length <= 1 ) { | |
return arr; | |
} | |
var sampleIndex = Math.floor(arr.length/2), | |
sample = arr.splice(sampleIndex, 1)[0], | |
left = [], | |
right = []; | |
for (var i = 0; i < arr.length ; i++){ | |
if ( arr[i] < sample ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://github.com/gabrielecirulli/2048/blob/master/js/animframe_polyfill.js | |
(function () { | |
var lastTime = 0; | |
var vendors = ['webkit', 'moz']; | |
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { | |
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; | |
window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || | |
window[vendors[x] + 'CancelRequestAnimationFrame']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title> requestAnimationFrame </title> | |
<style type="text/css"> | |
.mover { | |
position: absolute; | |
height: 100px; | |
width: 100px; |
OlderNewer