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
{ | |
"rules": { | |
"Address_ZipCode": { | |
"minlength": 5, | |
"maxlength": 5, | |
"regex": "^[\\+0-9]*$", | |
"number": true, | |
"required": true | |
}, | |
"Phone": { |
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
input[type='checkbox'] { | |
@include checkbox-input; | |
font-size:1em; | |
&:checked { | |
background-color: transparent; | |
&:before { | |
color:#000; | |
} | |
} |
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 system = require('system'); | |
var args = system.args; | |
var env = system.env; | |
var os = system.os; | |
console.log("\nSYSTEM"); | |
console.log(os.architecture); // '64bit/32bit' | |
console.log('os',os.name); // 'mac/windows' | |
console.log('version',os.version); // '10.9 (Mavericks)/7' | |
console.log('pid',system.pid) |
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
define(function(){ | |
return { | |
"Beth" : "Elizabeth", | |
"Theo" : "Theodore", | |
"Drew" : "Andrew", | |
"Fred" : "Alfred", | |
"Tony" : "Antony", | |
"Alex" : "Alexander", | |
"Ben" : ["Benjamin","Benedict"], | |
"Eliza" : "Elizabeth", |
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
require.config({ | |
paths:{ | |
'jquery':'//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min', | |
'lodash':'//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.0-rc.2/lodash.min', | |
'foundation':'//cdnjs.cloudflare.com/ajax/libs/foundation/3.2.2/javascripts/foundation.min', | |
'text':'//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.3/text' | |
} | |
}); | |
require([ | |
'jquery', |
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
body { | |
background-color:#444; | |
font-family:helvetica, arial | |
} | |
.content { | |
margin:0 auto; | |
width:950px; | |
background-color: #EEE; | |
padding:0; | |
} |
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
alert('Im a script located on gist.github via rawgithub and I\'ve been injected into this demo @' + document.location.origin) | |
alert('I have full access to JS to do things like read your cookies... Check this out... ' + document.cookie); | |
alert('I can also access the websites API to change your password or steal your credit card number'); | |
alert('XSS can be used for Eve-ill'); |
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
/** | |
* parseURIData(location.search.substr(1)); | |
* @param search | |
* @returns {*} | |
*/ | |
module.exports = function (search) { | |
var result = {}; | |
if(!search.length){ | |
return result; | |
} |
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
$('#myParentElement').one('click','a.myClass',function(){ | |
/* this code will execute only once */ | |
$('#myParentElement a.myClass').editable().click(); | |
}); |
OlderNewer