- Initialize expo app:
expo init my-app - Template:
blank typescript - Add strict
tsconfig.json"compilerOptions": { "allowSyntheticDefaultImports": true, "jsx": "react-native",
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
| const nested = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]]; | |
| const flatten = nested.flat(Infinity); | |
| // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
| const result = flatten.join(", "); | |
| // "1, 2, 3, 4, 5, 6, 7, 8, 9, 10" |
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
| @echo off | |
| echo Virtualization must be disabled to use anti-cheat clients like FACEIT and ESEA | |
| echo. | |
| net session >nul 2>&1 | |
| if %ERRORLEVEL% EQU 0 goto :chchchchoices | |
| echo This script requires elevated privileges. Re-run as Administrator to continue | |
| goto :exit | |
| :chchchchoices |
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
| html, | |
| body, | |
| div, | |
| span, | |
| applet, | |
| object, | |
| iframe, | |
| h1, | |
| h2, | |
| h3, |
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
| # windows bash | |
| eval "$(oh-my-posh init bash --config ${POSH_THEMES_PATH}/uew.omp.json)" | |
| # macos zsh | |
| eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/uew.omp.json)" |
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
| { | |
| "name": "packages", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "private": true, | |
| "scripts": { | |
| "start": "concurrently \"wsrun --parallel start\"" | |
| }, | |
| "workspaces": [ |
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 { Resource, convertFilter, convertParam, getModelByName } from '@adminjs/prisma' | |
| import type { Filter } from 'adminjs' | |
| import { BaseRecord, flat } from 'adminjs' | |
| import { getPrismaClient, getPrismaClientAdminjs } from '../../prisma/util.js' | |
| import type { int } from 'aws-sdk/clients/datapipeline.js' | |
| import { DMMF } from '@prisma/client/runtime/library.js'; | |
| /* | |
| Our schema is: | |
| Booking: | |
| id: int |
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 | |
| # Laravel Sail Application Quick Setup Script | |
| set -e # Exit on any error | |
| echo "🚀 Starting Laravel (Sail) Application Setup..." | |
| # Colors for output | |
| RED='\033[0;31m' |
OlderNewer
