- Disable Windows Fast-Startup
- Disable Secure Boot
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
Date.prototype.addHours = function (h) { | |
this.setHours(this.getHours() + h); | |
return this; | |
} | |
var japanTimeOffset = 9; | |
var timeZoneOffset = new Date().getTimezoneOffset() / 60; | |
var japanCurrentTIme = new Date().addHours(japanTimeOffset + timeZoneOffset); | |
var inWorkingHours = japanCurrentTIme.getHours() >= 8 && japanCurrentTIme.getHours() < 20; |
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
{ | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[typescript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, |
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
const compress = (str) => { | |
if (str.length < 2) { | |
return str; | |
} | |
const arr = str.split(""); | |
let oputput = []; | |
let count = 1; | |
for (let i = 0; i < arr.length; i++) { |