Skip to content

Instantly share code, notes, and snippets.

Avatar

Linh Phung code-vagabond

  • Frankfurt
View GitHub Profile
@code-vagabond
code-vagabond / en.json
Created May 25, 2020
techboost/common
View en.json
{
"login": {
"label": "Email address",
"invalidEmail": "Invalid Email",
"password": "Password",
"login": "Login"
},
"invitation": {
"title": "Invitation",
"subtitle": {
View en.json
{
"login": {
"forgotPassword": "Forgot password ?",
"error": {
"notParticipant": "You are not registered as a participant, please login on website dedicated to organizer."
}
},
"profile": {
"edit": "Edit your profile",
"firstLoginDialog": {
View package.json
{
"name": "web",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "ng serve ekipa --configuration dev --hmr",
"start:ekipa": "ng serve ekipa --configuration dev --hmr",
"start:ekipa:integration": "ng serve ekipa --configuration integration --hmr",
"start:ekipa:production": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng serve ekipa --configuration production --hmr",
"start:admin": "ng serve admin --configuration dev --hmr",
View challenge-timeline-horizontal.html
<div class="d-flex justify-content-center">
<div class="progress-bullets" style="width: 22.5rem;">
<div class="progress-outer">
<div class="line"></div>
<div class="steps d-flex flex-row justify-content-between align-items-center">
<div class="step">
<div class="circle"></div>
<div>Qualifikation</div>
</div>
<div class="step">
@code-vagabond
code-vagabond / reverse.pipe.ts
Created Sep 16, 2018
Reverse an observable
View reverse.pipe.ts
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'reverse'
})
export class ReversePipe implements PipeTransform {
transform(value) {
if (!value) { return; }
@code-vagabond
code-vagabond / timestamp.js
Created Sep 16, 2018
getTimestamp for firestore
View timestamp.js
getTimeStamp() {
const now = new Date();
now.setUTCHours(now.getUTCHours() + 2);
const date =
now.getUTCFullYear() +
'/' +
(now.getUTCMonth() + 1) +
'/' +
now.getUTCDate();
@code-vagabond
code-vagabond / login.css
Created Aug 31, 2018
Styling for login with dark background and white outline, using mat-form-field, appearance = "outline"
View login.css
input::placeholder {
color: $grey-lighter !important;
}
.mat-form-field-outline {
color: whitesmoke !important;
}
.mat-form-field-outline-thick {
color: white !important;
box-shadow: 1px 0px 10px 0.125em rgba(255, 255, 255, 0.27) !important;
View tree
tree src/ -P "*.api.ts"
https://stackoverflow.com/questions/3455625/linux-command-to-print-directory-structure-in-the-form-of-a-tree
View action.ts
export enum SignInActionTypes {
SignIn = '[Auth] Signing In'
}
export class SignIn implements Action {
readonly type = SignInActionTypes.SignIn;
constructor(public payload: {err: any}) {}
}
View effect.ts
/**
* Effect class for auth effects
*/
@Injectable()
export class AuthEffects {
constructor(private actions$: Actions,
private authApi: AuthApi,
private authUserApi: AuthUserApi,