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 tailPromise = Promise.resolve(); | |
const enqueuePromise = (fn) => { | |
return tailPromise = tailPromise.then(fn); | |
}; |
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 spiralMatrixTraverse(matrix) { | |
if (matrix.length === 0) { | |
return []; | |
} | |
const result = []; | |
let top = 0; | |
let bottom = matrix.length - 1; | |
let left = 0; | |
let right = matrix[0].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
function myParseInt(input) { | |
let result = 0; | |
let isNegative = false; | |
let i = 0; | |
input = input.trim(); | |
if (input[0] === '-') { | |
isNegative = true; | |
i = 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
const ffi = require('ffi-napi'); // ^4.0.3 | |
const ref = require('ref-napi'); // ^3.0.3 | |
const wchar_t = require('ref-wchar-napi'); // ^1.0.3 | |
const Struct = require('ref-struct-di')(ref); // ^1.1.1 | |
const ArrayType = require('ref-array-di')(ref); // ^1.2.2 | |
const Iconv = require('iconv').Iconv; // ^3.0.1 | |
module.exports = (connectionName, userName, password) => { | |
const RASDIALPARAMS = Struct({ | |
dwSize: ref.types.uint32, |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<webview | |
style="height:97vh" | |
src="https://www.eventbrite.com/e/built-to-spill-tickets-96116339559" | |
preload="./preload.js" | |
nodeintegrationinsubframes="true" | |
webpreferences="contextIsolation=no" | |
/> |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<webview | |
style="height:97vh" | |
src="https://example.com" | |
webpreferences="nativeWindowOpen=no" | |
/> | |
</body> | |
</html> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type='text/javascript'> | |
document.location = 'https://shop.axs.com/?c=axs&e=38614969&cid=en-US&t_locale=en-US&tsr=1626692742&tsh=0eb55650bd77341f3eebc133facbe785545956724b35e422fd9193814ce891fc'; | |
</script> | |
<style type="text/css"> | |
body { | |
color: #000; | |
font-family: Arial,Helvetica,sans-serif; |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<webview | |
src="about:blank" | |
preload="preload.js" | |
nodeintegrationinsubframes="true" | |
/> | |
</body> | |
<script> |