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 myString = "abc99"; | |
newString = myString.replace(/\d+$/, function(n) { return ++n }); |
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
/* global module */ | |
"use strict"; | |
module.exports = function (context) { | |
function checkObjectExpression(node) { | |
var props = node.properties; | |
var numberOfProperties = props.length; |
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
/* global module */ | |
"use strict"; | |
module.exports = function (context) { | |
function checkObjectExpression(node) { | |
var numberOfProperties = node.properties.length; | |
var objHasMultipleProperties = (numberOfProperties > 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
/* global module */ | |
"use strict"; | |
module.exports = function (context) { | |
function checkObjectExpression(node) { | |
var numberOfProperties = node.properties.length; | |
var objHasMultipleProperties = (numberOfProperties > 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
/* global module */ | |
"use strict"; | |
module.exports = function (context) { | |
function checkObjectExpression(node) { | |
var multiplePropertiesOnOneLine; | |
var numberOfLines; |
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
/* global module */ | |
"use strict"; | |
module.exports = function(context) { | |
function checkVarDeclarations(node) { | |
var hasMultipleVars = (node.declarations.length > 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
var now = (function() { | |
// Returns the number of milliseconds elapsed since either the browser navigationStart event or | |
// the UNIX epoch, depending on availability. | |
// Where the browser supports 'performance' we use that as it is more accurate (microsoeconds | |
// will be returned in the fractional part) and more reliable as it does not rely on the system time. | |
// Where 'performance' is not available, we will fall back to Date().getTime(). | |
// jsFiddle: http://jsfiddle.net/davidwaterston/xCXvJ |
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
select table_name as found | |
from information_schema.tables | |
where table_schema = '__database_name__' | |
and table_name = '__table_name__' |
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
select column_name | |
from information_schema.columns | |
where table_schema = '__database_name__' | |
and table_name = '__table_name__' | |
and column_name = '__column_name__' |
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
show tables like '__table_name__' |
OlderNewer