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
/*! | |
* jQuery lightweight plugin boilerplate | |
* Original author: @ajpiano | |
* Further changes, comments: @addyosmani, @findzen | |
* Licensed under the MIT license | |
*/ | |
// the semi-colon before the function invocation is a safety | |
// net against concatenated scripts and/or other plugins |
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, document, undefined) { | |
'use strict'; | |
// ensure only one instance is running at a time | |
if (window._fz_wordcloud) return; | |
window._fz_wordcloud = true; | |
var MAX_WORDS = 50; | |
var BASE_FONT_SIZE = 12; |
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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
# Change these settings to your own preference |
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
M: | |
CV 1 N P.NEXT | |
TR.PULSE A | |
M ADD 50 RSH PARAM 5 | |
I: | |
P.N 0 | |
P.L 7 | |
CV.SLEW D 1000 |
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
<?php | |
define('BASE_HREF', '//' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/'); | |
?> | |
<base href="<?=BASE_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
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{SCRIPT_FILENAME} !-d | |
RewriteCond %{SCRIPT_FILENAME} !-f | |
RewriteRule ^.*$ ./index.php |
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
// returns max value in array | |
Array.max = function(array) { | |
return Math.max.apply(Math, array); | |
} |
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
Array.shuffle = function(array) { | |
var tmp, current, top = array.length; | |
if(top) while(--top) { | |
current = Math.floor(Math.random() * (top + 1)); | |
tmp = array[current]; | |
array[current] = array[top]; | |
array[top] = tmp; | |
} |
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 hash = function(s){ | |
var n; | |
if (typeof(s) == 'number' && s === parseInt(s, 10)){ | |
s = Array(s + 1).join('x'); | |
} | |
return s.replace(/x/g, function(){ | |
var n = Math.round(Math.random() * 61) + 48; | |
n = n > 57 ? (n + 7 > 90 ? n + 13 : n + 7) : n; | |
return String.fromCharCode(n); | |
}); |
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
// save hash value for HTML5 browsers arriving to site via HTML4 hashed url | |
// this should be done before $(document).ready and History.js is loaded | |
window.initHash = window.location.hash; | |
$(document).ready(function() { | |
var baseURL = History.getBaseUrl(), | |
currentURL = History.getState().url, | |
relativeURL = currentURL.replace( baseURL, '' ); | |
if ( !Modernizr.history && currentURL !== baseURL ) { |
OlderNewer