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
SET global group_concat_max_len = 4294967295; | |
SET @tableSchema = "SCHEMA_HERE"; | |
SET @tableName = "TABLE_HERE"; | |
SET @tablePrimaryDefinition = "int(10) unsigned not null auto_increment"; | |
SET @referencedTablesColumnDefinition = "int(10) unsigned"; | |
SELECT DISTINCT kcu.TABLE_NAME, | |
kcu.TABLE_SCHEMA, | |
kcu.COLUMN_NAME, | |
kcu.CONSTRAINT_NAME, | |
kcu.REFERENCED_TABLE_NAME, |
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
/* | |
* Base implementation of this service, modify it to your needs. | |
* Pushing events to dataLayer has to be included yet, working on it (like page_view for router nav events) | |
*/ | |
import { DOCUMENT, isPlatformServer } from '@angular/common'; | |
import { | |
inject, | |
Injectable, | |
InjectionToken, | |
PLATFORM_ID, |
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 { execSync } from 'child_process'; | |
import fs from 'fs'; | |
import { ProjectGraph } from 'nx-cloud/lib/core/models/run-context.model'; | |
import path from 'path'; | |
// Get a list of all projects in the workspace | |
execSync('npx nx dep-graph --file=dep-graph.json'); | |
const depGraphData = JSON.parse(fs.readFileSync('dep-graph.json', 'utf-8')); | |
// get root package.json data dependencies |
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 { FileSystemService } from './FileSystemService'; | |
import { GCPGCSFileSystem } from './GCPGCSFileSystem'; | |
import { LocalFileSystem } from './LocalFileSystem'; | |
import { StorageOptions } from '@google-cloud/storage'; | |
import { ConfigurableModuleBuilder, Module } from '@nestjs/common'; | |
/** | |
* This configuration object dictates which instance of | |
* ApiFileSystemService will be used. | |
*/ |
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 { | |
type AfterViewInit, | |
Directive, | |
inject, | |
Injectable, | |
Input | |
} from '@angular/core'; | |
import { type NavigationExtras, Router, RouterLink } from '@angular/router'; | |
import type { Prettify } from '@rcambiental/global/typescript'; | |
import type { z } from 'zod'; |
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 SingularPluralSignature = { | |
length: number; | |
singular: string; | |
plural: string; | |
ifLengthZero?: string; | |
}; | |
const buildSingularPluralString = (...args: Array<string | SingularPluralSignature>) => | |
args.reduce((acc, next) => | |
typeof next === 'string' ? [ |
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 { injectScreenSizeObserver } from './screen-size-observer.service'; | |
import { | |
type AfterViewInit, | |
ChangeDetectorRef, | |
Directive, | |
type EmbeddedViewRef, | |
inject, | |
Input, | |
type OnDestroy, | |
TemplateRef, |
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 class EncryptionUtil { | |
private static _textEncoder = new TextEncoder(); | |
private static _textDecoder = new TextDecoder(); | |
private static ENC_DEC_SIMPLE_CHARS = | |
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'; | |
/** | |
* Simple synchronous encryption using `XOR` algorithm, returning only allowed characters. | |
* This method is fast but offers only low security. Supports UTF-8 characters. | |
*/ |