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 theThing = null; | |
var replaceThing = function () { | |
var originalThing = theThing; | |
var unused = function () { | |
if (originalThing) | |
console.log("hi"); | |
}; | |
theThing = { | |
longStr: new Array(1000000).join('*'), | |
someMethod: function () { |
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
set smoothscroll | |
let scrollstep = 200 | |
let scrollduration = 700 |
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 re = /([\[\]\,.?"\(\)+\-_*\/\\&\$#^@!%~`<>:;\{\}?,。·!¥……()+{}【】、|《》]|(?!\s)'\s+|\s+'(?!\s))/ig; | |
content.replace(re, ''); |