View model_validation.js
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
var validate = function (data, model, cb) { | |
var failures = []; | |
var regEx; | |
var validJSON; | |
var processNode; | |
var result; | |
var traverseNodes; | |
// Define common regular expressions |
View index.html
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> | |
<html> | |
<head> | |
<title>DozerJS TodoList</title> | |
<link rel="stylesheet" href="screen.css"> | |
</head> |
View codio.sh
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
echo "zsh && exit 0" >> ~/.bash_profile && | |
curl -L http://install.ohmyz.sh | sh |
View websocket-only.js
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
// Client-side | |
io.connect({ | |
forceNew: true, | |
transports: [ 'websocket' ] | |
}); | |
// Server-side | |
var io = require('socket.io'); | |
var app = require('express')(); | |
var server = require('http').createServer(app); |
View JSON_PHP_Encapsulation.php
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
/* | |
* This script allows saving & retrieval of JSON data in .php files by | |
* encapsulating in a <?php/*| ... |*/?> closure, preventing them from | |
* being accessed via URL. | |
*/ | |
////////////////////////////////////////////////////////////////////// | |
// Get JSON | |
///////////////////////////////////////////////////////////////////// |
View CSS-Self-Clear.css
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
/* clearing floats normal browsers */ | |
.group:after { | |
content: ""; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} | |
/* clearing floats IE6 */ |
View GetIPAddress.php
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 getIP(){ | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])){ | |
$ip=$_SERVER['HTTP_CLIENT_IP']; | |
}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ | |
$ip=$_SERVER['HTTP_X_FORWARDED_FOR']; | |
}else{ $ip=$_SERVER['REMOTE_ADDR']; } | |
return $ip; | |
} |
View jquery.rotator.js
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
/* | |
* | |
* Another fine bit of code by Kent Safranski < http://www.fluidbyte.net > | |
* | |
* HTML: | |
* <ul id="banner"> | |
* <li>Stuff</li> | |
* ... | |
* </ul> | |
* |
View jquery.autocomplete.js
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
/* | |
* | |
* Simple Autocomplete Plugin | |
* @author - Kent Safranski - http://www.fluidbyte.net | |
* | |
* HTML: | |
* -------------------------------------------------------------------- | |
* <input class="autocomplete" data-src="path/to/processor.php" /> | |
* | |
* CSS: |
View DumGrid.css
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
/* | |
* | |
* Inline-Block CSS Responsive Grid System | |
* | |
* <!-- 2 Column with 10% Gutter --> | |
* <div class="grid column-45 gutter-10"></div> | |
* <div class="grid column-45"></div> | |
* | |
* <!-- 3 Column with 5% Gutter --> | |
* <div class="grid column-30 gutter-5"></div> |
OlderNewer