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
# Global composer install for MAMP Users on OSX | |
# http://getcomposer.org/doc/00-intro.md#globally | |
# For PHP 5.4 Use: | |
# alias php=/Applications/MAMP/bin/php/php5.4.4/bin/php; | |
alias php=/Applications/MAMP/bin/php/php5.3.6/bin/php; | |
curl -sS https://getcomposer.org/installer | php; | |
mv composer.phar /usr/local/bin/composer; | |
composer help; |
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
window.requestAnimFrame = (function(callback) { | |
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || | |
function(callback) { | |
window.setTimeout(callback, 1000 / 60); | |
}; | |
})(); | |
function animate() { | |
var canvas = document.getElementById('canvas_1'); | |
var context = canvas.getContext('2d'); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^$ | |
# BEGIN force www before URL | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTPS}s ^on(s)| | |
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# END for www on URL | |
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
$('.myElements').each(function() { | |
var elem = $(this); | |
// Save current value of element | |
elem.data('oldVal', elem.val()); | |
// Look for changes in the value | |
elem.bind("propertychange keyup input paste", function(event){ | |
// If value has changed... | |
if (elem.data('oldVal') != elem.val()) { |
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 filter_users_dropdown() { | |
search = $('#from').val().toLowerCase(); | |
$('#users-dropdown li').each(function(index) { | |
var value = $(this).text().toLowerCase(); | |
n = value.search( search ); |
NewerOlder