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> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> |
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
/* Apply the class "group" to your container element ie8+*/ | |
.group:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} |
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 $ = document.querySelectorAll.bind(document); | |
Element.prototype.on = Element.prototype.addEventListener; | |
$('@cursor')[0].on('touchstart', handleTouch); |
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
*, *:before, *:after { | |
box-sizing: border-box; | |
} | |
.grid-full { | |
width: 100%; | |
} | |
.grid-1-2 { | |
float: left; |
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
@mixin breakpoint($point) { | |
@if $point == papa-bear { | |
@media (max-width: 1600px) { @content; } | |
} | |
@else if $point == mama-bear { | |
@media (max-width: 1250px) { @content; } | |
} | |
@else if $point == baby-bear { | |
@media (max-width: 650px) { @content; } | |
} |
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
/* | |
* Add a shuffle function to Array object prototype | |
* Usage : | |
* var tmpArray = ["a", "b", "c", "d", "e"]; | |
* tmpArray.shuffle(); | |
*/ | |
Array.prototype.shuffle = function (){ | |
var i = this.length, j, temp; | |
if ( i == 0 ) return; | |
while ( --i ) { |
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
require 'fileutils' | |
files = Dir.glob "*.png" | |
files = files.map { |file| [file.count("?/"), file] } | |
files = files.sort.map { |file| file[1] } | |
files.each do |file| | |
rena = file.include? 'Screen Shot' | |
dchk = 'temp' | |
if rena |
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
(function() { | |
function compose(...funcs) { | |
return function (value) { | |
return funcs.reverse().reduce(function(previous, current) { | |
return previous.call(this, current(value)); | |
}); | |
}; | |
} | |
function shout(string) { |
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
function reloadConfig(files) | |
doReload = false | |
for _,file in pairs(files) do | |
if file:sub(-4) == ".lua" then | |
doReload = true | |
end | |
end | |
if doReload then | |
hs.reload() | |
end |
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
-- window management | |
-- animation set 0 for instant sizing | |
hs.window.animationDuration = 0 | |
function windowOrder() | |
local KEYBOARD_MODIFIER = {'cmd', 'alt', 'shift'} | |
function getPos() | |
local win = hs.window.focusedWindow() |