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
# observable | |
# observer | |
# reaction | |
# derivation | |
import time | |
from typing import Callable | |
from collections import defaultdict | |
from attr import attrib, attrs |
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 () { | |
"use strict"; | |
var view, viewModel, valueTemplate; | |
valueTemplate = { | |
configurable: false, | |
enumerable: true, | |
get: function () { | |
return this._value; |
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
// N x repeated characters | |
const LEN = process.argv.length > 2 ? parseInt(process.argv[2]) : 4 | |
console.log('LEN: ' + LEN) | |
function check(s) { | |
let i = s.length - LEN | |
const p = s.charAt(i) | |
for (i++; i<s.length; i++) { | |
if (p != s.charAt(i)) { |
OlderNewer