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
"use server"; | |
import { redirect } from "next/navigation"; | |
export async function createOrgAction(formData: FormData) { | |
const org = formData.get("org"); | |
redirect(`/organization/${org}`); | |
} |
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
//example declaration | |
(function() { | |
//do something | |
})(); | |
//alternative declaration | |
(function() { | |
//do something | |
}()); |
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
# Android Sim fails to open | |
$ {/Path/To/Library/Android/sdk/emulator/emulator} {@Device_API_#} | |
# Expo Go fails to install on Android emulator | |
$ adb -s {emulator-name} install {/Path/To/.expo/android-apk-cache/Exponent-2.22.3.apk} | |
# List iOS simulator devices | |
$ xcrun simctl list devices | |
#List Android emulator devices |
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
type SoilTest { | |
id: ID! | |
fieldID: ID! | |
date: String | |
testID: String | |
ph: Float | |
p2o5(unit: p2o5Unit = LBS_PER_ACRE): Float | |
k2o(unit: k2oUnit = LBS_PER_ACRE): Float | |
om: Float | |
cec: Float |
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
h1 { | |
/* font-size: clamp(min, ideal, max); */ | |
font-size: clamp(20px, 10vw, 200px); | |
} | |
/* Set ideal in vw to tie font size to browser width (i.e. 1000px wide == font-size: 100px */ |
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 mockInitialValue = { test: "" }; | |
const mockSetValue = { test: "" }; | |
const mockErrors = { test: "" }; | |
jest.mock("../path/to/formik", () => ({ | |
useFormikContext: jest.fn().mockImplementation(() => { | |
return { | |
setFieldValue: () => { | |
return mockSetValue; | |
}, |
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
Show hidden characters
[ | |
{ "keys": ["shift+super+g"], "command": "side_bar_git_liberal" } | |
] |