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
| #!/usr/bin/env bun | |
| import { $ } from 'bun' | |
| const VALID_BUMPS = ['patch', 'minor', 'major'] as const | |
| type Bump = (typeof VALID_BUMPS)[number] | |
| function bumpVersion(current: string, bump: Bump): string { | |
| const [major, minor, patch] = current.split('.').map(Number) | |
| switch (bump) { |
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
| // `storage` is just a MMKV instance from `react-native-mmkv` | |
| import { storage } from "@/app/storage"; | |
| import { atomWithStorage } from "jotai/utils"; | |
| const defaultOpts = { getOnInit: true }; | |
| export const atomWithMmkvBooleanStorage = ( | |
| key: string, | |
| initialValue: boolean | |
| ) => |
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 { withAppDelegate, WarningAggregator } = require('@expo/config-plugins'); | |
| const { | |
| mergeContents, | |
| } = require('@expo/config-plugins/build/utils/generateCode'); | |
| const methodInvocationDefinition = `@interface RocketSimLoader : NSObject | |
| - (void)loadRocketSimConnect; | |
| @end |
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/sh | |
| # Install basic stuff needed for rails server deployment | |
| apt update | |
| apt install git -y | |
| apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip -y | |
| apt install postgresql postgresql-contrib -y | |
| # Install Ruby and Rails | |
| command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - |
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
| func start() { | |
| let task = Process() | |
| let pipe = Pipe() | |
| task.standardOutput = pipe | |
| // remember to load your environment path | |
| task.environment = ["PATH": path] | |
| task.currentDirectoryPath = "Project/dir" | |
| task.arguments = ["-c", "yarn start"] | |
| task.launchPath = "/bin/zsh" | |
| task.launch() |
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 React from 'react' | |
| import { View, Pressable } from 'react-native' | |
| import googleSignIn from './signIn.js' | |
| export default function SignIn() { | |
| return ( | |
| <View style={{ flex: 1 }}> | |
| <Pressable onPress={googleSignIn}> | |
| <Text>Continue with Google</Text> | |
| </Pressable> |
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 functions = require('firebase-functions') | |
| const admin = require('firebase-admin') | |
| const config = JSON.parse(process.env.FIREBASE_CONFIG) | |
| const isDev = config.projectId === 'dev-projectId' | |
| const cert = isDev | |
| ? require('../dev-key.json') | |
| : require('../prod-key.json') | |
| config.credential = admin.credential.cert(cert) |
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
| extension Int { | |
| func formatUsingAbbrevation () -> String { | |
| let numFormatter = NSNumberFormatter() | |
| typealias Abbrevation = (threshold:Double, divisor:Double, suffix:String) | |
| let abbreviations:[Abbrevation] = [(0, 1, ""), | |
| (1000.0, 1000.0, "K"), | |
| (100_000.0, 1_000_000.0, "M"), | |
| (100_000_000.0, 1_000_000_000.0, "B")] |
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
| .mtk6 { | |
| color: #61e2ff; | |
| text-shadow: 0 0 2px #001716, 0 0 5px #03edf933, 0 0 10px #ffff6633; | |
| } | |
| .mtk3 { | |
| color: #72f1b8; | |
| text-shadow: 0 0 2px #100c0f, 0 0 10px #257c55, 0 0 35px #212724; | |
| font-style: italic; |
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": "SynthWave 84", | |
| "type": "dark", | |
| "colors": { | |
| "focusBorder": "#1f212b", | |
| "foreground": "#ffffff", | |
| "widget.shadow": "#2a2139", | |
| "selection.background": "#34294f59", | |
| "errorForeground": "#8a2dc0", | |
| "textLink.activeForeground": "#61e2ff", |
NewerOlder