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
$langlist = New-WinUserLanguageList en-US | |
$langlist.Add('uk') | |
$langlist[1].InputMethodTips.Clear() | |
# 0422:00020422 - Default Ukrainian | |
# 0422:A0000422 - Unicode 2.0 https://r2u.org.ua/wiki/keyboard/UkrainianUnicode | |
$langlist[1].InputMethodTips.Add('0422:A0000422') | |
Set-WinUserLanguageList $langlist -Force |
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 getPathTo(element) { | |
if (element.id!=='') | |
return 'id("'+element.id+'")'; | |
if (element===document.body) | |
return element.tagName; | |
var ix= 0; | |
var siblings= element.parentNode.childNodes; | |
for (var i= 0; i<siblings.length; i++) { | |
var sibling= siblings[i]; |
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
alert('It works') |
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 promisify(func, ...args) { | |
return (args) => { | |
return new Promise((resolve, reject) => { | |
func(args, (err, ...args) => { | |
if (err) { | |
return reject(err); | |
} | |
resolve(args); | |
}) | |
}); |
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
let curHr = require('today').getHours(); | |
const greeting = new require('greeting')('@team'); | |
if(curHr<12){ | |
greeting.hello('morning'); | |
}else if(curHr<18){ | |
greeting.hello('afternoon'); | |
}else{ | |
greeting.hello('evening'); | |
} |
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
/* | |
* Do it. | |
* | |
*/ | |
this.on('start', function() { | |
var directions = { | |
top: function() { | |
this.thrusters.bottom(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
/* | |
* Open all three doors to exit. | |
* | |
* The answer is ?. | |
*/ | |
/* | |
* Do it. | |
* | |
*/ |
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
/* | |
* Do it. | |
* | |
*/ | |
this.on('start', function() { | |
var directions = { | |
top: function() { | |
this.thrusters.bottom(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
/* | |
* Open all three doors to exit. | |
* | |
* The answer is 5. | |
*/ | |
this.on('start', function() { | |
var directions = { | |
top: 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
/* | |
* This other bot is helping-- somewhat. | |
*/ | |
this.on('start', function() { | |
var directions = { |
NewerOlder