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 | |
print("\n"); | |
if(!isset($argv[1])) | |
{ | |
die("! Required argument: filename \n"); | |
} | |
$filename = $argv[1]; |
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
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* SHA-1 implementation in JavaScript (c) Chris Veness 2002-2014 */ | |
/* */ | |
/* - see http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html */ | |
/* http://csrc.nist.gov/groups/ST/toolkit/examples.html */ | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* jshint node:true *//* global define, escape, unescape */ | |
'use strict'; |
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
#container{ | |
width:960px; | |
margin:0 auto; | |
} | |
header{ | |
width:100%; | |
height:200px; | |
background-color:#ccc; | |
} | |
section#main{ |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>New Web Project</title> | |
<script type="text/javascript" src="js/jquery.min.js"></script> | |
<script type="text/javascript" src="dynamicselect.js"></script> | |
</head> | |
<body> |
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
/** | |
* used for testing purposes only | |
* @param {int} size the maximum number possible | |
* @return {array} a random integer | |
*/ | |
function randomInt(max){ | |
return Math.ceil(Math.random() * max); | |
} |
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(){ | |
String.prototype.concat = function(argument){ | |
if ( arguments.length > 0 ){ | |
if ( typeof argument === "string" ) { | |
return this + argument; | |
} else { | |
var str = ""; | |
for ( var i in argument ){ | |
str += argument[i]; | |
} |
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
// http://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically | |
Object.prototype.merge = function(mergeFrom){ | |
var newObj = {}; | |
for (var attrname in this) { newObj[attrname] = this[attrname]; } | |
for (var attrname in mergeFrom) { newObj[attrname] = mergeFrom[attrname]; } | |
return newObj; | |
}; |
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 | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
// Make a bit, honkin test array | |
// You may need to adjust this depth to avoid memory limit errors | |
$testArray = fillArray( 0, 5 ); | |
// Time json encoding |
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
<h1>heading <code><h1></code></h1> | |
<h2>heading <code><h2></code></h2> | |
<h3>heading <code><h3></code></h3> | |
<h4>heading <code><h4></code></h4> | |
<h5>heading <code><h5></code></h5> | |
<h6>heading <code><h6></code></h6> | |
<hr /> | |
<p>The <a href="#">a element </a> example <code><a href="#"></code><br /> | |
The <abbr title="Title text">abbr element</abbr> example <code><abbr title=""></code><br /> | |
The <b>b element</b> example <code><b></code><br /> |
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
$.validator.addMethod("similarity", function(value, element, params){ | |
var acceptable = .25; | |
function mush(str){ | |
str = str.replace(/[ \?|\.|!|\(|\)|\\|\/]/g, '').toLowerCase(); | |
var arr = []; | |
for(var i = 0; i <= str.length - 1; i++){ | |
arr.push(str[i]); | |
} | |
return arr.sort(); |
NewerOlder