๐
This file contains hidden or 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 { MyState } from 'my-state.enum'; | |
| import { translations } from 'translations.de'; | |
| const state: MyState = getState(); | |
| assert(translations[state]); | |
| console.log(`Status: ${translations[state]}`); |
This file contains hidden or 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
| Model Information: | |
| * title: Viking Watch Tower | |
| * source: https://sketchfab.com/3d-models/viking-watch-tower-5cd42c3ef75748e0b57f25247f073d53 | |
| * author: eugeen (https://sketchfab.com/eugeen) | |
| Model License: | |
| * license type: CC-BY-NC-4.0 (http://creativecommons.org/licenses/by-nc/4.0/) | |
| * requirements: Author must be credited. No commercial use. | |
| If you use this 3D model in your project be sure to copy paste this credit wherever you share it: |
This file contains hidden or 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
| docker-dev-db-1 | The files belonging to this database system will be owned by user "postgres". | |
| docker-dev-db-1 | This user must also own the server process. | |
| docker-dev-db-1 | | |
| docker-dev-db-1 | | |
| docker-dev-db-1 | The database cluster will be initialized with locale "en_US.utf8". | |
| docker-dev-db-1 | The default database encoding has accordingly been set to "UTF8". | |
| docker-dev-db-1 | The default text search configuration will be set to "english". | |
| docker-dev-db-1 | | |
| docker-dev-db-1 | | |
| docker-dev-db-1 | Data page checksums are disabled. |
This file contains hidden or 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
| /* | |
| To use this script, adjust the `config` object. | |
| - set owner | |
| - set source repos to migrate from | |
| - set target repository name | |
| - set target repository folder path | |
| IMPORTANT: .npmrc needs to be configured, being to access GitHub Packages. | |
| Execute using: | |
| export GITHUB_TOKEN=<personal_access_token> | |
| export GITHUB_USER=<github_user_name> |
This file contains hidden or 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
| #!/bin/bash | |
| GIT_MEMORY_CONFIG=~/.bash/resources/.gitmemory.json | |
| alias oldcd=cd | |
| reset-git-memory() { | |
| rm -rf $GIT_MEMORY_CONFIG | |
| } |
This file contains hidden or 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 AsyncObject<T> { | |
| //#region Private Fields | |
| private _valueSet: T = null as any; | |
| private _resolveValue: (value: T | PromiseLike<T>) => void = null as any; | |
| //#endregion | |
| //#region Properties | |
| private _value: Promise<T>; | |
| public get value(): Promise<T> { | |
| return this._value; |
This file contains hidden or 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
| #!/bin/bash | |
| giti() { | |
| echo $1 >> .gitignore | |
| } |
This file contains hidden or 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
| using Avsn.Core.Accounting.Api.Contracts; | |
| using Microsoft.Extensions.Options; | |
| using Wyrekit.Core.Api.Composition.Abstraction; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IdentityModel.Tokens.Jwt; | |
| using System.Security.Claims; | |
| using System.Security.Principal; | |
| using System.Text; | |
| using System.Threading.Tasks; |
This file contains hidden or 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
| function convertToCssSelector(xPath: string): string { | |
| let selector = ''; | |
| let filterOpenedAt: boolean|number = false; | |
| let squareBracketsOpened = 0; | |
| for (let i = 0; i < xPath.length; i++) { | |
| if (xPath[i] === '/') { | |
| if (i === 0 || i === 1) { | |
| continue; | |
| } |
This file contains hidden or 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
| module.exports = function(argsPassed) { | |
| var excel = require('excel4node'); | |
| var path = require('path'); | |
| // Create a new instance of a Workbook class | |
| var workbook = new excel.Workbook(); | |
| // Add Worksheets to the workbook | |
| var worksheet = workbook.addWorksheet('Sheet 1'); | |
| var worksheet2 = workbook.addWorksheet('Sheet 2'); |
NewerOlder