This file contains hidden or 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 thenKickSelf = window.confirm("Kick yourself too?"); | |
| const wait = (ms) => new Promise(resolve => window.setTimeout(resolve, ms)); | |
| const click = (el) => (el.click(), wait(260)); | |
| const confirm = () => click(document.querySelector(`[data-id="EBS5u"]`)); | |
| const buttons = Array.from(document.querySelectorAll(`[data-tooltip="Remove from meeting"]`)); | |
| const kickSelf = () => document.querySelector(`[data-tooltip="Leave call"]`).click(); | |
| let init = wait(0); |
This file contains hidden or 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
| // | |
| // A class that manages the event lifecycle, sanitization, and UX resolution when editing an input. | |
| // See `Editor.edit()` for primary API usage. | |
| // Example code at bottom. | |
| // | |
| export default class Editor { | |
| constructor(maxlength = 60) { | |
| this.maxlength = maxlength; | |
| this.el = null; |
This file contains hidden or 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
| steps=6 | |
| currentstep=1 | |
| function update() { | |
| echo -e "\n================================================================================" | |
| echo -e "\t\tStep $currentstep of $steps: $@" | |
| echo -e "================================================================================\n" | |
| currentstep=$((currentstep+1)) |
This file contains hidden or 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
| // procedure forward declarations | |
| procedure showBinary(value: byte); @forward; | |
| // procedure definitions | |
| procedure showBinary(value: byte); | |
| begin showBinary; | |
| push(eax); | |
| push(ecx); |
This file contains hidden or 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 contains = function(text, word) { | |
| if ( text.split(word).length > 1 ) return true; | |
| return false; | |
| }; | |
This file contains hidden or 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
| // functionality similar (if not the same) as _'s extend method | |
| var extend = function(){ | |
| if (arguments.length < 2) return; | |
| var extended = arguments[0]; | |
| for (var _x = 1, _xx = arguments.length; _x < _xx; _x++) { | |
| var base = arguments[_x]; | |
| for (var key in base) { | |
| extended[key] = base[key]; |
This file contains hidden or 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 Stack = (function() { | |
| var list = []; // Private to the instance. | |
| var append = function() { | |
| for ( var x = 0, xx = arguments.length; x< xx; x++ ) { | |
| list.push( arguments[x] ); | |
| } | |
| return this; |
This file contains hidden or 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
| lastTime = 0 | |
| vendors = ['ms', 'moz', 'webkit', 'o'] | |
| for x in vendors and not window.requestAnimationFrame | |
| window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'] | |
| window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] or | |
| window[vendors[x]+'CancelRequestAnimationFrame'] | |
| if not window.requestAnimationFrame |