Contents:
- installer.sh
- installer.py
Requirments:
Python3
| function FindProxyForURL(url, host) { | |
| var PROXY_LIST_FILE = 'https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt'; | |
| var TEST_TARGET_URL = 'https://google.com'; | |
| var TEST_TIMEOUT = 5000; | |
| var proxyList = []; | |
| function addProxy(proxy) { | |
| if (proxyList.indexOf(proxy) === -1) { | |
| proxyList.push(proxy); | |
| } |
| function typeSafeGetter<V extends object>(o: V) { | |
| return function < | |
| K extends keyof V, | |
| P extends undefined | K = undefined, | |
| R = P extends K ? V[P] : V, | |
| >(property?: P): R { | |
| if (typeof o === 'undefined') throw 'error'; | |
| if (typeof property === 'undefined') { | |
| return o as never |
| export class storage { | |
| public static canUse(): boolean { | |
| return typeof localStorage !== 'undefined'; | |
| } | |
| public static hasKey(key: string): boolean { | |
| return storage.canUse() && localStorage.getItem(key) !== null; | |
| } | |
| public static getJson<T>(key: string): T | null { |
| export function define<T extends {}>(source: T, ...sources: any[]): T { | |
| return Object.assign(source, ...sources) as T; | |
| } | |
| export function assign<T extends {}>(...sources: any[]): T { | |
| return Object.assign({}, ...sources) as T; | |
| } | |
| export function sureAssign<T>( | |
| value: T | undefined, |
| import { create, type SetState } from '@core/module/store'; | |
| import { | |
| COUNTDOWN_DEFAULT_DURATION, | |
| COUNTDOWN_DEFAULT_STATE, | |
| COUNTDOWN_STORAGE_KEY, | |
| } from './countdown.constants'; | |
| import type { | |
| CountDownAction, | |
| CountDownState, | |
| CountDownStore, |
Just for entertainment:
webpack --profile --json > stats.json
(node.js API: { profile: true } and stats.toJson())| export class Direction implements Direction.Interface { | |
| private _direction: Direction.Direct | `${Direction.Direct}` | null = null; | |
| private _startPoint: Point | null = null; | |
| private _endPoint: Point | null = null; | |
| public constructor() {} | |
| public setStartPoint(startPoint: Point): void { | |
| this._startPoint = startPoint; | |
| } |
| [autorun] | |
| open = "./.@Autorun/.setup.sh" | |
| label = MY_USB_NAME | |
| icon = "./.@Autorun/icon.ico" |
| #!/usr/bin/env python3 | |
| import time | |
| import os | |
| # home path to user | |
| user_home = os.environ["HOME"] | |
| # setp - 1 | |
| os.system('clear') | |
| # define default value for variable |