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
(100 / a.length) * corespondLen
corespondLen - количество совпадений
class SomeCmp {
constructor() {
this.counter = null
}
click() {
this.counter.innerText = Math.random()
}
render() {
@ilopX
ilopX / LogDecor.js
Last active December 14, 2019 06:10
function module() {
class Decorator {
}
let _onLogging = ({ args, result }) => {
// console.log(args, result)
};
function registerLogger(method) {
if (method instanceof Function) {
@ilopX
ilopX / Observe.js
Last active December 15, 2019 10:18
function module() {
class Observer extends Modifier {
constructor() {
super(null);
this.subscribers = new Array();
this._currID = 0;
super._subscribable = this;
}
sbscribtionLength() {
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
const UserService = {
url: 'http://localhost:3000/api/users',
//...
login(email, password) {
let urlencoded = new URLSearchParams();
urlencoded.append('email', email);
urlencoded.append('password', password);
let requestOptions = {
method: 'POST',
// live prewiev
// https://dartpad.dev/4f17382ff908f81b70efecaa386f7a59
import 'package:flutter/material.dart';
import 'dart:math';
void main() {
runApp(MyApp());
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ilopX
ilopX / collapsible markdown.md
Last active August 5, 2020 15:34 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

Code Sample

yes, even hidden code blocks!

print("hello world!")
@ilopX
ilopX / screenDrawer.js
Last active August 6, 2020 09:34
JavaScript override method example
/**
* Экрана(монитор, консоль, принтер) в котором находятся
* элементы юзер интерфейса
*/
class Screen {
/**
*
* @type {UIElement[]}
* @private
*/