Skip to content

Instantly share code, notes, and snippets.

View NikolayMakhonin's full-sized avatar

Nikolay Makhonin NikolayMakhonin

View GitHub Profile
bytecode.h order Byte Code Category Accumulator Use Operand 1 Operand 2 Operand 3 Operand 4 Operand 5
1 Wide Extended width operands None
2 ExtraWide Extended width operands None
3 DebugBreakWide Debug Breakpoints ReadWrite
4 DebugBreakExtraWide Debug Breakpoints ReadWrite
5 DebugBreak0 Debug Breakpoints ReadWrite
6 DebugBreak1 Debug Breakpoints ReadWrite Reg
7 DebugBreak2 Debug Breakpoints ReadWrite Reg Reg
8 DebugBreak3 Debug Breakpoints ReadWrite Reg Reg Reg
9 DebugBreak4 Debug Breakpoints ReadWrite Reg Reg Reg Reg
@NikolayMakhonin
NikolayMakhonin / DependentFunc.js
Created February 12, 2020 08:52
DependentFunc (test)
var DependentFunc=function(t){"use strict";var r;(function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function s(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,i=Object.create(o.prototype),u=new O(n||[]);return i._invoke=function(t,r,e){var n=c;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return A()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var a=x(u,e);if(a){if(a===p)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===c)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=h;var s=l(t,r,e);if("normal"===s.type){if(n=e.done?v:f,s.arg===p)continue;return{value:s.arg,done:e.done}}"throw"===s.type&&(n=v,e.method="throw",e.arg=s.arg)}}}(t,e,u),i}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}
import {List} from '../../../../../main/common/lists/List'
declare const assert: any
describe('common > main > lists > List', function() {
function generateArray(size) {
const arr = []
for (let i = 0; i < size; i++) {
arr.push(i)
}
@NikolayMakhonin
NikolayMakhonin / binarySearch.js
Last active March 29, 2019 09:29
Binary search in JavaScript
function defaultCompare(o1, o2) {
if (o1 < o2) {
return -1;
}
if (o1 > o2) {
return 1;
}
return 0;
}
@NikolayMakhonin
NikolayMakhonin / css-selectors-performance.csv
Last active May 20, 2019 10:23
Css selectors performance test
Selector Chromium 33 Firefox 65 Chrome 73 Max
.unique-row td.cell 33.99999999 44.76923077 49.01666666 49.01666666
.unique-row td 5.000000005 46.61538462 4.941666686 46.61538462
.unique-row .cell 30.00000003 36.46153846 45.43333334 45.43333334
tr.unique-row td 6.000000023 37.84615385 5.163888887 37.84615385
tr.unique-row td 5.000000005 34.15384615 4.958333318 34.15384615
tr.unique-row td 4.999999976 33.23076923 5.077777767 33.23076923
.unique-row td.cell.unique-cell 22 6.461538462 15.79444445 22
td.cell.unique-cell 22 6 15.82499998 22
.unique-row .cell.unique-cell 19 6.461538462 11.7111111 19