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
set ENABLE_FLUTTER_DESKTOP=true | |
call flutter channel master | |
call flutter upgrade | |
call flutter run |
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
/* | |
* 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" |
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
#!/user/bin/env node | |
console.log('e gist') |
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 box = (obj) => { | |
return { | |
get isBox() { | |
return true | |
}, | |
get prop() { | |
return obj | |
}, | |
unbox() { | |
let o = obj |
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 createBird() { | |
let distance = 0 | |
let self = { | |
fly(A = 1) { | |
distance += A | |
return self | |
}, | |
getDistance() { | |
return distance |
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 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) | |
} |
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 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); |
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 Event() { | |
} | |
const isNode = () => (typeof process !== 'undefined') && (process.release.name === 'node') | |
Event.check = (func) => { | |
if (func instanceof Function) { | |
return func | |
} else { |
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
export default function module() { | |
class Component { | |
/** | |
* | |
* @param {HTMLElement} anchor | |
*/ | |
constructor(anchor) { | |
this._anchor = anchor | |
this._props = {} | |
// this._renderView() |
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 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) |
OlderNewer