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 { | |
Component, | |
ChangeDetectionStrategy, | |
NgModule, | |
Input, | |
} from '@angular/core'; | |
import { Observable } from 'rxjs'; | |
import { WithObservableModule } from '.'; | |
@Component({ |
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
export interface StringBasedIndexedEntry { | |
id: string; | |
} | |
export interface NumberBasedIndexedEntry { | |
id: number; | |
} | |
type AnyIndexedEntry = StringBasedIndexedEntry | NumberBasedIndexedEntry; |
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
#list infos about system | |
cat /etc/*release | |
#disk usage simple : | |
du -h --max-depth=1 . | |
# commits ahead commits behind | |
git rev-list --left-right --count origin/rc...(git rev-parse --abbrev-ref HEAD) | |
#rm docker volumes matching regex pattern : |
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
Object.defineProperty(window, 'localStorage', { | |
configurable: true, | |
enumerable: true, | |
value: new Proxy(localStorage, { | |
set: function (ls, prop, value) { | |
console.log(`direct assignment: ${prop} = ${value}`); | |
debugger; | |
ls[prop] = value; | |
return true; | |
}, |
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
\Doctrine\Common\Util\Debug::dump($var, $maxDepth = 2, $stripTags = false, $echo = true) | |
php /usr/local/bin/composer.phar | |
<img src={{ file_url(content.field_image|field_target_entity.uri.value) }} alt={{ content.field_image|field_raw('alt') }} /> |
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
<f:if condition="{mediaElement.originalResource.type} == 4 && {mediaElement.originalResource.properties.extension} == 'youtube'} == 'youtube'"> | |
<f:then> | |
<v:media.youtube videoId="{mediaElement.originalResource.contents}" width="500" height="500" autoplay="0" legacyCode="0" showRelated="0" extendedPrivacy="1" | |
hideControl="1" hideInfo="1" enableJsApi="1" loop="0" lightTheme="1" /> | |
</f:then> |
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
<div> | |
{truc -> f:format.raw()} | |
</div> | |
<!-- outputs : <div><p>Toto</p><div> --> |
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
<img.*?[^-]src(set)?=".*?.(jpg|png).*?".*?(>|\n) |
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
[...] | |
type mainData = { | |
gActions: list(gAction), | |
entities: list(entity), | |
history: list(historyChunk), | |
resources: int | |
}; |
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
type foo = { | |
bla: string | |
}; | |
type bar = { | |
fooList: list(foo) | |
}; | |
let theBar = { | |
fooList: [ |
NewerOlder