💡 Pro Tip: Add this script to PATH to make it accessible from anywhere
This file contains hidden or 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
| // Example of how to reference another file / library type | |
| import puppeteer from 'puppeteer'; | |
| /** @typedef {import(@types/puppeteer).Browser} Browser */ | |
| /** | |
| * @type Browser | |
| */ | |
| let browser; |
This file contains hidden or 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 {Injectable} from '@angular/core'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class LoggerService { | |
| constructor() { | |
| } |
This file contains hidden or 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 {AfterViewInit, Directive, ElementRef, Input} from '@angular/core'; | |
| @Directive({ | |
| selector: '[batteryIcon]' | |
| }) | |
| export class BatteryIconDirective implements AfterViewInit { | |
| private _batteryPercentage: number; | |
| @Input() |
This file contains hidden or 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 md5cycle(x, k) { | |
| var a = x[0], | |
| b = x[1], | |
| c = x[2], | |
| d = x[3]; | |
| a = ff(a, b, c, d, k[0], 7, -680876936); | |
| d = ff(d, a, b, c, k[1], 12, -389564586); | |
| c = ff(c, d, a, b, k[2], 17, 606105819); | |
| b = ff(b, c, d, a, k[3], 22, -1044525330); |
This file contains hidden or 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
| var dbName = 'http://localhost:5984/couch-test', | |
| nDocs = 10000, | |
| batchSize = 1000, | |
| scrapFactor = 0, | |
| docs = [], | |
| testQuery = 'entries/sumTime', | |
| destroyDb = false, | |
| _log = console.log, | |
| db; |
This file contains hidden or 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 unicodeToText(b, endian, backSlashU) { | |
| var d, c = ""; | |
| if (!backSlashU) { | |
| c = "\\\\u" | |
| } | |
| return b.replace(new RegExp(c + "([0-9a-fA-F]{4})", "g"), function(e, f) { | |
| d = parseInt(f, 16); | |
| if (endian) { | |
| d = (((d & 255) << 8) | ((d & 65280) >>> 8)) | |
| } |
This file contains hidden or 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 enum MongoErrorCode { | |
| OK = 0, | |
| InternalError = 1, | |
| BadValue = 2, | |
| OBSOLETE_DuplicateKey = 3, | |
| NoSuchKey = 4, | |
| GraphContainsCycle = 5, | |
| HostUnreachable = 6,// Categories: NetworkError, RetriableError | |
| HostNotFound = 7,// Categories: NetworkError, RetriableError | |
| UnknownError = 8, |
This file contains hidden or 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
| var count = 0; | |
| function myFunction() { | |
| Logger.log('Starting'); | |
| // Please Write the path of the folder you want sub path seperated with slash(,) (spaces are counted) | |
| // for example: for myFolder/test -> myFolder,test | |
| // And NOT myFolder, test | |
| var folders = []; | |
| if(!folders) { |
NewerOlder