Skip to content

Instantly share code, notes, and snippets.

<?php
function isBetween($number, $start, $end) {
return (
(
$start < $number
&& $number < $end
) || $start === $number
);
}
@lucash
lucash / jquerySorterBankmanager.js
Created December 17, 2009 23:33
Some javascript used by http://bankmanagergame.de to sort tables using the fantastic tablesorter plugin for jquery
$(document).ready(function()
{
function intFindParser (){}
intFindParser.prototype.id = 'intFindParser',
intFindParser.prototype.regExp = /(\d*)/,
intFindParser.prototype.is = function(s) {
var found = s.search(this.regExp);
if (found != -1) {
return true;
}