I use it. If you don't, read these:
You can still ignore semicolons, but know that ASI is a syntactic error correction procedure,
// Simple proof of concept for PHP bug (CVE-2012-0830) described by Stefan Esser (@i0n1c) | |
// http://thexploit.com/sec/critical-php-remote-vulnerability-introduced-in-fix-for-php-hashtable-collision-dos/ | |
// Generate 1000 normal keys and one array | |
function createEvilObj () { | |
var evil_obj = {}; | |
for (var i = 0; i < 1001; i++) { | |
evil_obj[i] = 1; | |
} | |
evil_obj['kill[]'] = 'kill'; |
I use it. If you don't, read these:
You can still ignore semicolons, but know that ASI is a syntactic error correction procedure,
Object.defineProperty(Date.prototype,"diff",{ | |
writable: false, configurable: false, enumerable: true, | |
/** | |
* Returns the difference between two Date objects. | |
* @param {Date} The date to compare to. | |
* @return {Object} | |
* @throws {TypeError} | |
*/ | |
value: function(date) { |
// make it safe to use console.log always | |
(function (a) { | |
function b() {} | |
for (var c = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","), d; !! (d = c.pop());) { | |
a[d] = a[d] || b; | |
} | |
}) | |
(function () { | |
try { | |
console.log(); |
(function($) { | |
// Used by dateinput | |
$.expr = {':': {}}; | |
// Used by bootstrap | |
$.support = {}; | |
// Used by dateinput | |
$.fn.clone = function(){ | |
var ret = $(); |
MIT License | |
=========== | |
Copyright (c) 2009–2011 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
/*! | |
* <style scoped> shim | |
* http://github.com/richtr | |
* | |
* Copyright 2012 Rich Tibbett | |
* Released under the MIT license | |
* http://opensource.org/licenses/MIT | |
* | |
* Date: 8th November 2012 | |
*/ |