When you lost, the future is here.
Read carefully, claim what is yours.
Will you "Begin Again"?
by Heiswayi Nrird, 230416!
nrffma
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 { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ name: 'titleLength' }) | |
export class TitleLengthPipe implements PipeTransform { | |
transform(title: String): String { | |
if (title === null) { | |
return ''; | |
} else if (title.length > 15) { | |
return title.substring(0, 15) + '...'; |
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
Show hidden characters
{ | |
"root": true, | |
"ignorePatterns": [ | |
"projects/**/*" | |
], | |
"overrides": [ | |
{ | |
"files": [ | |
"*.ts" | |
], |
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 { Logger, LogLevel, LogOutput } from './logger.service'; | |
const logMethods = ['log', 'info', 'warn', 'error']; | |
describe('Logger', () => { | |
let savedConsole: any[]; | |
let savedLevel: LogLevel; | |
let savedOutputs: LogOutput[]; | |
beforeAll(() => { |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" itemscope itemtype="http://schema.org/WebPage"> | |
<head> | |
<link href="http://gmpg.org/xfn/11" rel="profile"> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta http-equiv="Expires" content="30"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> |
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 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
public static class DispatchService | |
{ | |
public static void Invoke(Action action) | |
{ | |
Dispatcher dispatchObject = Application.Current.Dispatcher; | |
if (dispatchObject == null || dispatchObject.CheckAccess()) | |
{ | |
action(); | |
} | |
else |
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
public class FixedSizedQueue<T> : ConcurrentQueue<T> | |
{ | |
private readonly object syncObject = new object(); | |
public int Size { get; private set; } | |
public FixedSizedQueue(int size) | |
{ | |
Size = size; | |
} |
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
@media only screen and (max-width: 480px) { | |
/* Mobile Styles Go Here */ | |
} | |
@media only screen and (min-width: 481px) and (max-width: 768px) { | |
/* Tablet Styles Go Here */ | |
} | |
@media only screen and (min-width: 769px) { | |
/* Desktop Styles Go Here */ |
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 addCss(rule) { | |
let css = document.createElement('style'); | |
css.type = 'text/css'; | |
if (css.styleSheet) css.styleSheet.cssText = rule; | |
else css.appendChild(document.createTextNode(rule)); | |
document.getElementsByTagName("head")[0].appendChild(css); | |
} | |
var rule = ':root{background-color:#fff;filter:invert(100%)}*{background-color:inherit}img:not([src*=".svg"]),video{filter:invert(100%)}'; | |
addCss(rule); |