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
{ | |
"color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
"default_line_ending": "windows", | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"draw_white_space": "all", | |
"font_face": "Source Code Pro", | |
"font_size": 13, | |
"word_wrap": "false", | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
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
git tag -d abcde | |
git push origin :refs/tags/abcde |
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 ($) { | |
'use strict'; | |
$.textareaMaxlength = function () { | |
// Allows the 'maxlength' attribute to be used with textarea fields to limit the | |
// number of characters that can be entered. | |
// e.g <textarea id="myfield" maxlength="250"></textarea> |
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
if (typeof String.prototype.contains != 'function') { | |
String.prototype.contains = function(str) { | |
return this.indexOf(str) >= 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
if (typeof String.prototype.startsWith != 'function') { | |
String.prototype.startsWith = function(str) { | |
return (this.lastIndexOf(str, 0) === 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
if (typeof Date.prototype.toISOString !== 'function') { | |
(function () { | |
'use strict'; | |
// Function which takes a 1 or 2-digit number and returns it as a two-character string, | |
// padded with an extra leading zero, if necessary. | |
function pad(number) { | |
var r = String(number); |
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); |