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 getFilesList ($scanDirectory) { | |
/** Create empty arrays for the files to scan and directories to evaluate */ | |
$_filesToBeScanned = array(); | |
$_directoriesLeftToEvaluate = array(); | |
/** Add the first directoy on to the evaluation queue */ | |
array_push($_directoriesLeftToEvaluate, $scanDirectory); | |
while (count($_directoriesLeftToEvaluate) !== 0) { | |
/** Grab the last directory */ |
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
// An implementation of Conway's Game of Life. | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"math/rand" | |
"time" | |
"os" | |
"strconv" |
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
/** | |
* Pad a string to a particular length | |
* @param {string} string - The string to be padded | |
* @param {string} paddingChar - The character used to pad out the string | |
* @param {int} count - The desired total length of the string | |
* @return {string} - The padded string | |
*/ | |
var stringPad = function (string, paddingChar, paddedLength) { | |
var outputString = String(string); | |
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
#!/bin/bash | |
function workspace_cd() { | |
cd $@ && [ -f ".workspace" ] && source .workspace | |
} | |
alias cd="workspace_cd" |
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
<? | |
/** Set the root of the directy tree you wish to scan */ | |
$scanDirectory = "/var/www"; | |
/** Create empty arrays for the files to scan and directories to evaluate */ | |
$_fileList = array(); | |
$_directoriesLeftToEvaluate = array(); | |
/** Add the first directoy on to the evaluation queue */ | |
array_push($_directoriesLeftToEvaluate, $scanDirectory); |
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
/** | |
* HTMLSpecialChars | |
*/ | |
function htmlSpecialChars (source) { | |
/** Mapping from HTML encoded character to actual character */ | |
var character_mapping = { | |
/** These are just example characters, you can fill this up with any character conversion you want to do */ | |
"&": "&", | |
"©": "©" | |
}; |
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
<?php | |
/** | |
* PHP-Scandir | |
* This application will scan all directories under the current directory and report any comprimised files | |
* | |
* @author Lawrence Goldstien <@lgoldstien> | |
* @contributers ["Ricky Birtles <@relaxedricky>"] | |
* @package PHP-Scandir | |
* @version 0.0.0 |
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
aardvark | |
aardvarks | |
aardwolf | |
ab | |
abaca | |
aback | |
abacus | |
abacuses | |
abaft | |
abalone |
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
{ | |
id : "1", | |
field : "SortCode", | |
name : "Bank Sort Code *", | |
validator : "^[0-9]{6}$" | |
editable : true, | |
editor : SlickGrid.Editors.TextEditor, | |
formatter : SlickGrid.Formatters.TextFormatter | |
} |
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 TextEditor(args) { | |
var $input; | |
var defaultValue; | |
var scope = this; | |
this.init = function() { | |
$input = $("<input />") | |
.appendTo(args.container) | |
.bind("keydown.nav", function(e) { | |
if (e.keyCode === $.ui.keyCode.LEFT || e.keyCode === $.ui.keyCode.RIGHT) { |