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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
general { | |
output_format = "i3bar" | |
colors = true | |
interval = 5 | |
} | |
order += "wireless wlan0" | |
order += "ethernet eth0" | |
order += "battery 0" | |
order += "cpu_temperature 0" |
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 importScript (path) { | |
var tag = 'script' | |
var scriptTag = document.createElement(tag), | |
firstScriptTag = document.getElementsByTagName(tag)[0]; | |
scriptTag.src = path | |
firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag); | |
} | |
importScript('https://rawgit.com/AStaroverov/Scheduler/master/Scheduler.js') |
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
import forEach from 'lodash/lodash' | |
class Defer { | |
constructor () { | |
this.resolve = null | |
this.reject = null | |
this.promise = new Promise((resolve, reject) => { | |
this.resolve = resolve | |
this.reject = reject |
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 TIME_PER_FRAME_FOR_GC = 5; // 5 mc | |
const rIC = window.requestIdleCallback || window.setTimeout; | |
const noop = () => {}; | |
const getTime = () => window.performance.now(); | |
export class Emitter { | |
constructor () { | |
this._destroyed = false; | |
this._eventsForGC = new Set(); | |
this._mapEventToFnWrapper = new Map(); |
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
import { html } from '@polymer/lit-element/src/lit-element'; | |
let string: string; | |
let valuesLength: number; | |
export function preHTML (strings: TemplateStringsArray, ...values: any[]) { | |
const newStrings: string[] = []; | |
const newValues: any[] = []; | |
valuesLength = values.length; |
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
import { html } from 'lit-element'; | |
import { TemplateResult } from 'lit-html'; | |
let str: string; | |
let valuesLength: number; | |
const cacheTemplateStringsToPreparedTemplateStrings = new WeakMap<TemplateStringsArray, string[]>(); | |
const cacheTemplateStringsToNeedlessValuesIndexes = new WeakMap<TemplateStringsArray, number[]>(); | |
// Сonvert dynamic tags to template strings |
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 index = 0; | |
function getIndex(): number { | |
index += 1; | |
return index; | |
} | |
const mapPointerToMap = new WeakMap<TPointer, number>(); | |
type TPointer = object | unknown[]; | |
export function createKeyByPointers(...pointers: TPointer[]): string { |