View aria-label-reflects-content.directive.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 { AfterViewInit, ChangeDetectorRef, Directive, ElementRef, HostBinding, OnDestroy } from '@angular/core'; | |
import { NEVER, Observable, Subject } from 'rxjs'; | |
import { takeUntil } from 'rxjs/operators'; | |
@Directive({ | |
selector: '[ariaLabelReflectsContent]', | |
exportAs: 'ariaLabelReflectsContent', | |
standalone: true, | |
}) | |
export class AriaLabelReflectsContentDirective implements AfterViewInit, OnDestroy { |
View encrypt_psw.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
// Original PHP function from WordPress PrivateContent (users_manag.php:930): | |
// | |
// public function encrypt_psw($psw) { | |
// return base64_encode( serialize( array(base64_encode($psw), md5(sha1(10091988*strlen($psw))) ))); | |
// } | |
var Base64 = require('js-base64').Base64; | |
var PHPSer = require('php-serialize'); | |
var crypto = require('crypto'); | |
var md5 = require('md5'); |
View npm-install-dumber.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
// Copyright (c) 2022 Steven Enten. All rights reserved. Licensed under the MIT license. | |
/** | |
* Install npm dependencies in a lazy-dumb-one-by-one way | |
* | |
* Usage: node npm-install-dumber.js [<package-name|package-type> ...] | |
* | |
* If `npm install` never succeeds: try to run this script as much as necessary. | |
* | |
* @example |
View fromImageLoadEvents.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
/** | |
* Create observable that emits when image load event occurred on element. | |
* | |
* @param element | |
* @returns Observable on element's image load events | |
*/ | |
export function fromImageLoadEvents(element: HTMLElement): Observable<HTMLImageElement> { | |
return new Observable<HTMLImageElement>(observable => { | |
const images: HTMLImageElement[] = []; | |
let loadListener: (event: ProgressEvent) => void; |
View embark-angular-utils.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
const fs = require('fs'); | |
const path = require('path'); | |
const glob = require('glob'); | |
const rimraf = require('rimraf'); | |
const { filter } = require('rxjs/operators'); | |
const { Architect } = require('@angular-devkit/architect'); | |
const { | |
basename, |
View atomik.scss
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
// | |
// atomik: responsive design in an atomic way. | |
// | |
// When responsive design must be or becomes an atomic job: | |
// let's atomik do the dirty work with a pretty-sugar api. | |
// | |
// |
View compose2.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
const assign = require('@stamp/core/assign') | |
const compose = require('@stamp/compose') | |
const isStamp = require('@stamp/is/stamp') | |
const merge = require('@stamp/core/merge') | |
const STAMP_DESCRIPTOR_VOID = { | |
'methods': {}, | |
'properties': {}, | |
'deepProperties': {}, | |
'propertyDescriptors': {}, |
View jdg-tcg-cartes.json
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
[ | |
{ | |
"numero": 1, | |
"type": "invocation", | |
"nom": "Joueur Du Grenier", | |
"famille": "humain", | |
"illustration": null, | |
"description": "Une carte originale", | |
"descriptionDetaillee": "Saviez-vous que cette chemise a été achetée dans un magasin et que du coup cette carte n'a aucun effet spécial ?", | |
"attaque": 3, |
View accessor.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
/** Usage */ | |
const Accessor = require('./accessor') | |
const obj = {} | |
Accessor.in(obj).under('options') | |
.add('foo.bar', () => 'fallback foobar') | |
//.add('what.you.need', () => 'fallback value') | |
// { defaultFooBar: [Function: value], |
View adsl3.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
const nodeNotifier = require('node-notifier') | |
const supportsColor = require('supports-color') | |
const { | |
inspect, | |
format | |
} = require('util') | |
const DEFAULT = { | |
colors: !!supportsColor, |
NewerOlder