This file contains hidden or 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
/*! | |
* | |
* stagas - mind swift (seutje wobble mix) | |
* | |
*/ | |
var bpm = 130; | |
var tuning = 440; | |
var transpose = 11; | |
var hardcodedTimer = 7.4; |
This file contains hidden or 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
/*! | |
* | |
* Welcome to Long Line Theory | |
* ------------------ | |
* | |
* A start of a human readable port of a well done bytebeat findable here : http://www.pouet.net/topic.php?which=8357&page=13 | |
* Made readable by @Eiyeron | |
* Enjoy! | |
* | |
*/ |
This file contains hidden or 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
/*! | |
* | |
* stagas - mind swift | |
* | |
*/ | |
var bpm = 130; | |
var tuning = 440; | |
var transpose = 11; |
This file contains hidden or 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
// Select an element in the inspector and run this in the console | |
function foo(node) { | |
if (window.getComputedStyle(node)) { | |
console.log(node, window.getComputedStyle(node).fontSize); | |
} else { | |
console.log(node, 'no size'); | |
} | |
if (node.parentNode) { | |
foo(node.parentNode); | |
} |
This file contains hidden or 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($) { | |
// Intentionally not using strict mode so we can use arguments | |
// Store scoped reference to the old method. | |
var _cycle = $.fn.cycle; | |
// Craft our own. | |
$.fn.cycle = function() { | |
// Find the closest visible parent. | |
var visibleParent = this.closest(':visible'); | |
// Make its children visible. |
This file contains hidden or 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 (e, a, h, f, c, b, d) { | |
c = a.createElement("script"); | |
c.type = "text/javascript"; | |
c.src = "https://rawgithub.com/marmelab/gremlins.js/master/gremlins.min.js"; | |
c.onload = c.onreadystatechange = function () { | |
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) { | |
h(); | |
f(c).remove() | |
} | |
}; |
This file contains hidden or 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="wrap"> | |
<div class="col"></div><div class="col"></div><div class="col"></div> | |
<div class="col"></div><div class="col"></div><div class="col"></div> | |
<div class="col"></div><div class="col"></div><div class="col"></div> | |
<div class="col"></div><div class="col"></div><div class="col"></div> | |
</div> |
This file contains hidden or 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
$.fn.equalizeRows = function() { | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = [], | |
$el, | |
topPos = 0, | |
currentDiv; | |
return this.each(function() { |
This file contains hidden or 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="#" class="button">Click me</a> |
This file contains hidden or 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
Foo.prototype.setupAssets = function() { | |
this.assets = this.assets || {}; | |
var calls = $.map(this.opts.assets, $.proxy(this.fetchAsset, this)); | |
$.when.apply(this, calls).then($.proxy(this.intro, this)); // Fetch all assets in parallel and call intro after they're all done. | |
}; | |
Foo.prototype.fetchAsset = function(url, label) { | |
if (typeof url === 'string') { | |
// return ajax call deferred object. | |
return $.ajax({ |