Skip to content

Instantly share code, notes, and snippets.

View ilopX's full-sized avatar
🐞
make some bugs

ilopX ilopX

🐞
make some bugs
  • ilopXgoup
  • Ukraine, Cherkassy
  • X @ilopX3
View GitHub Profile
@ilopX
ilopX / build_and_run.bat
Created June 16, 2019 08:47
Run flutter app on Windows
set ENABLE_FLUTTER_DESKTOP=true
call flutter channel master
call flutter upgrade
call flutter run
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/gpu/GrBackendSemaphore.h"
#include "include/gpu/GrContext.h"
#include "include/private/GrResourceKey.h"
@ilopX
ilopX / index.js
Last active November 8, 2019 14:33
#!/user/bin/env node
console.log('e gist')
const box = (obj) => {
return {
get isBox() {
return true
},
get prop() {
return obj
},
unbox() {
let o = obj
@ilopX
ilopX / bird.js
Last active November 10, 2019 08:36
function createBird() {
let distance = 0
let self = {
fly(A = 1) {
distance += A
return self
},
getDistance() {
return distance
function listNum(operation) {
let oneNumber = parseInt(this.join(''))
return operation(oneNumber).toString()
.split('')
.map(val => new Number(val))
}
Array.prototype.increment = function() {
return listNum.call(this, (val) => ++val)
}
let result;
timeSplit(15,
() => result = 1, // (1) r == 1 через 15 с
() => result += 3, // (2) r == 4 через 30 с
() => result += 13, // (3) r == 17 через 45 с
() => result += 34, // (4) r == 51 через 60
() => result += 2); // (5) r == 53 через 75 с
testing.tick(1000);
assert(result).toBe(undefined);
function Event() {
}
const isNode = () => (typeof process !== 'undefined') && (process.release.name === 'node')
Event.check = (func) => {
if (func instanceof Function) {
return func
} else {
export default function module() {
class Component {
/**
*
* @param {HTMLElement} anchor
*/
constructor(anchor) {
this._anchor = anchor
this._props = {}
// this._renderView()
function corespondFirst(a, b) {
return throw new NotImpl()
}
assert(corespond('ilopXsoft', 'ilopXsoft')).toBe(100)
assert(corespond('ilopXsoft', 'ilopXsofw').toFixed(2)).toBe(88.88)
assert(corespond('ilopXsoft', 'ilopXsrsed').toFixed(2)).toBe(66.66)
assert(corespond('ilopXsoft', 'iasdfasdfasdfasdf').toFixed(2)).toBe(11.11)