underline
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 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 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 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 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 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 getAllRecordingsUrl() { | |
return Array.from(document.querySelectorAll('a[href^="/view/"]')).map(a => a.href) | |
} | |
function sendDeleteRecordingReq(id) { | |
return fetch(`https://terminalizer.com/delete/${id}`, { | |
"headers": { | |
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", | |
"accept-language": "en-US,en;q=0.9,he;q=0.8", | |
"sec-fetch-dest": "document", |
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
a |
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 {AfterViewInit, Directive, ElementRef, Input} from '@angular/core'; | |
@Directive({ | |
selector: '[batteryIcon]' | |
}) | |
export class BatteryIconDirective implements AfterViewInit { | |
private _batteryPercentage: number; | |
@Input() |
OlderNewer