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
PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\w\[\033[00m\]\[\033[01;32m\]\$(__git_ps1 \" (%s)\")\[\033[01;35m\] \$\[\033[00m\] " |
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
// Author: | |
// Title: | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
#define PI 3.1415 | |
uniform vec2 u_resolution; |
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 a proper 3Commas signature (HMACSHA256) | |
* | |
* @param str string | |
* @param secret string | |
* @return {string} | |
*/ | |
export function sign(str, secret) { | |
return crypto.createHmac('sha256', secret).update(str).digest('hex'); | |
} |
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 { Observable } from 'rxjs'; | |
import { map } from 'rxjs/operators'; | |
import { | |
CallHandler, | |
ExecutionContext, | |
Inject, | |
Injectable, | |
NestInterceptor, | |
Optional, | |
} from '@nestjs/common'; |
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
app-page-carded { | |
h1 { | |
font-size: $big; | |
} | |
} |
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 id="articles-list"> | |
<!-- Our page carded component --> | |
<app-page-carded> | |
<ng-template #title> | |
<h1>Users List</h1> | |
</ng-template> | |
<ng-template #search> | |
<!-- Display a search box --> | |
<app-list-search [listForm]="listForm"></app-list-search> | |
<!-- Display a modal form containing our filters --> |
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
@Component({ | |
selector: 'app-my-content', | |
template: '<ng-container *ngTemplateOutlet="tplRef"></ng-container>', | |
}) | |
class MyContent { | |
@ContentChild('myContent', {static: true}) tplRef: TemplateRef<any>; | |
} |
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
<app-my-content tplRef="myContent"></app-my-content> | |
<ng-template #myContent> | |
<app-my-other-component>Hello world!</app-my-other-component> | |
</ng-template> |
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
<app-my-content> | |
<app-my-other-component>This will cause a memory leak!</app-my-other-component> | |
</app-my-content> |
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
@Component({ | |
selector: 'app-my-content', | |
template: '<ng-content></ng-content>', | |
}) | |
class MyContent { | |
} |
NewerOlder