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 SHOULD NOT BLINDLY REPLACE USING THESE REGEX, FALSE POSITIVES ARE POSSIBLE. | |
These were written to make the job easier, but it still needs checking. | |
Adding var regex, replaces $var1 + $var2 by bcadd($Var1, $var2, 2) | |
Regex: (\$[\$\'\'\"\"\[\]\_A-z0-9]+?)[\s]*\+[\s]*([\$\'\'\"\"\[\]\_A-z0-9]+) | |
Replace: bcadd($1,$2) | |
Replaces $var1 += $var2 by $var1 = bcadd($var1,$var2) | |
Regex: (\$[\$\'\'\"\"\[\]\_A-z0-9]+?)[\s]*\+\=[\s]*(\$[\$\'\'\"\"\[\]\_A-z0-9]+) |
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
/* | |
Usage example: | |
$(".list > .col-md-4").equalheights(); | |
*/ | |
(function ( $ ) { | |
$.fn.equalheights = function() { | |
var maxHeight = 0; | |
this.each(function(i){ | |
if(parseInt($(this).outerHeight()) > maxHeight){ | |
maxHeight = parseInt($(this).outerHeight()); |
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
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |