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
// Finding the difference between to arrays of objects | |
// As told through the magic of... | |
// _____ _ _____ _ _ | |
// / ____| (_) / ____(_) | | | |
// | (___ _ __ _ ___ ___ | | __ _ _ __| |___ | |
// \___ \| '_ \| |/ __/ _ \ | | |_ | | '__| / __| | |
// ____) | |_) | | (_| __/ | |__| | | | | \__ \ | |
// |_____/| .__/|_|\___\___| \_____|_|_| |_|___/ | |
// | | | |
// |_| |
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
# Start the docker daemon without having to click that obnoxious icon. | |
alias docker-start="/Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh" |
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
//This is how we make the link work. | |
var el = ev.target; | |
while (el.parentNode) { | |
el = el.parentNode; | |
if (el.nodeName == 'A') { | |
window.location.href = el.getAttribute('data-href'); | |
} | |
} |
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
// _hero-medium.less | |
.hero-medium { | |
// medium screen code | |
} |
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
___________ __ _________ _______ _______. | |
/ \ / \ / __ \ |__ \ / | | |
| (-----\ \/ \/ / / ^ \ / ^ \ | (----` | |
\ \ \ / / /_\ \ / /_\ \ \ \ | |
.----) | \ /\ / / _____ \ / _____ \----) | | |
|_______/ \__/ \__/ /__/ \__\ /__/ \_________/ | |
**Star Wars As A Service** |
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 interval(func, wait, times){ | |
var interv = function(w, t){ | |
return function(){ | |
if( typeof t === "undefined" || t-- > 0 ){ | |
setTimeout(interv, w); | |
try { | |
func.call(null); | |
} | |
catch(e) { | |
t = 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
grunt.initConfig({ | |
sprite: { | |
sprite_large: { | |
src: '<%= yeoman.app %>/images/sprites-2x/*.{png,jpg,gif}', | |
destImg: '<%= yeoman.app %>/images/sprites-2x.png', | |
destCSS: '<%= yeoman.app %>/styles/_sprites-2x.scss', | |
imgPath: '../images/sprites-2x.png', | |
'cssVarMap': function (sprite) { | |
sprite.name = 'sprite-' + sprite.name; | |
}, |
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
$(document).ready(function(){ | |
// Disable page scrolling | |
$("html").css({'overflow': 'hidden'}); | |
// Block arrow keys scrolling | |
document.onkeydown = function(e) { | |
if (!e) e = window.event; | |
if(e){ // IE8 and earlier | |
if(e.keyCode){ |
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 log = function(obj) { | |
if (typeof window.console === 'object' && typeof window.console.log === 'function') { | |
window.console.log(obj); | |
} | |
} |
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
<div class="large-padding-6-8 medium-padding-3-5 small-padding-2-3"></div> |
NewerOlder