Skip to content

Instantly share code, notes, and snippets.

View devinhalladay's full-sized avatar
🌱
running my fingers through the grass

Devin Halladay devinhalladay

🌱
running my fingers through the grass
View GitHub Profile
@devinhalladay
devinhalladay / SketchSystems.spec
Last active November 13, 2023 21:00
Workspace
Workspace
No File Opened
open file -> File
File
Clean Draft
on change -> Edited
on close with changes -> Unsaved Changes Warning
on save -> Clean Draft
on discard -> No File Opened
Edited
@devinhalladay
devinhalladay / SketchSystems.spec
Created March 6, 2023 00:14
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
Third State
first -> First State
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
LSPStatus&
Admin
FAILED? -> FAILED
SUCESS? -> SUCCESS
WARNING? -> WARNING
OFF? -> OFF
Rendering
# Check user preferences first
Code Intelligence Preferences*
enabled? -> Check LSP Client Exists
Resting*
play -> Booting
always on -> Booting
Booting
2s delay -> Running
Running
stop -> Resting
code update -> Booting
@devinhalladay
devinhalladay / SketchSystems.spec
Created January 24, 2023 16:33
Installing an Extension*
Installing an Extension*
# admin action
reset state chart -> Store
# admin action
finish installing -> Finished Installing?
Store*
click extension -> Cover Page
click manage -> Installed List
Cover Page
not installed?*
@devinhalladay
devinhalladay / SketchSystems.spec
Last active January 24, 2023 16:28
Installing an Extension*
Installing an Extension*
# admin action
reset state chart -> Store
# admin action
finish installing -> Finished Installing?
Store*
click extension -> Cover Page
click manage -> Installed List
Cover Page&
not installed?*
@devinhalladay
devinhalladay / SketchSystems.spec
Created January 24, 2023 16:26
Installing an Extension*
Installing an Extension*
# admin action
reset state chart -> Store
# admin action
finish installing -> Finished Installing?
Store*
click extension -> Cover Page
click manage -> Installed List
Cover Page&
not installed?*
@devinhalladay
devinhalladay / lesson.tsx
Last active March 4, 2022 23:03
Valiating slugs of child documents in parent→child relations for Sanity Studio
import ComputedField from 'sanity-plugin-computed-field';
import { validateLessonSlugUniqueness } from '../../utils/validateLessonSlugUniquness';
import { getPublishedId } from '../../utils/documentPublishStatus';
export default {
name: 'lesson',
title: 'Lesson',
type: 'document',
fields: [
/**