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
//BAM - it's dependent on jquery atm | |
//<script src="ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"> | |
//</script> | |
var $someDivForOutput = $("section#divYeahExactly"); | |
var cityList = | |
{ | |
geoCodeLocation : function(loc) | |
{ |
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(){ | |
window.playerKeyControls = window.playerKeyControls || (function(){ | |
var keys = { left: 37, up: 38, right: 39, down: 40, enter : 13, escape : 27, space : 32, L : 76 }, | |
elements = { | |
playerBar : $("#player-bar"), | |
back : $("#backwards"), | |
forward : $("#forwards"), | |
playPause : $("#playPause"), |
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
<a href="javascript:(function(){window.playerKeyControls=window.playerKeyControls||function(){var keys={left:37,up:38,right:39,down:40,enter:13,escape:27,space:32,L:76},elements={playerBar:$("#player-bar"),back:$("#backwards"),forward:$("#forwards"),playPause:$("#playPause"),like:$("#controlLike"),linker:$("#playerJamLink")}; $(document).on("keydown",function(e){var keyCode=e.keyCode||e.which;if(!elements.playerBar.is(":visible"))return;if(e.metaKey){console.log("got meta key");return true;}switch(keyCode){case keys.up:case keys.down:return true;case keys.left:elements.back.click();break;case keys.right:elements.forward.click();break;case keys.L:elements.like.click();break;case keys.enter:elements.linker.click();break;case keys.space:elements.playPause.click();break;}return false;});}();})();">Keyboard Controls</a> |
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
/** | |
* Semi-transparent color masking | |
* (answer to question) | |
*/ | |
.img-wrapper { | |
position: relative; | |
float:left; | |
overflow: hidden; | |
} |
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
/** | |
* Semi-transparent color masking | |
* (answer to question) | |
*/ | |
.img-wrapper { | |
position: relative; | |
float:left; | |
overflow: hidden; | |
} |
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
/** | |
* Artist Song Dick Docs | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
// You could do it with n | |
opacity() | |
opacity arguments | |
-moz-opacity arguments | |
filter: unquote('alpha(opacity=' + round(arguments * 100) + ')') | |
-ms-filter unquote('progid:DXImageTransform.Microsoft.Alpha(Opacity=' + round(arguments * 100) + ')') |
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
#!/usr/bin/env node | |
/** | |
* Module dependencies. | |
*/ | |
var fs = require('fs') | |
, stylus = require('../lib/stylus') | |
, basename = require('path').basename | |
, dirname = require('path').dirname |
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
# should return current branch | |
function current_branch() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || \ | |
ref=$(git rev-parse --short HEAD 2> /dev/null) || return | |
echo ${ref#refs/heads/} | |
} | |
alias pullup='git pull origin $(current_branch)' | |
alias pushup='git push origin $(current_branch)' |
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
// CB stands for either common bollocks or cock block or both at the same time | |
cb().enableInlineImages(); |
OlderNewer