Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
dribbble.com/joeyfigaro

Joey Figaro joeyfigaro

🖖
dribbble.com/joeyfigaro
View GitHub Profile
@joeyfigaro
joeyfigaro / theme.ts
Created Jan 6, 2022
Stitches Debugging
View theme.ts
import { createStitches } from '@stitches/react'
export const {
theme,
styled,
css,
config,
globalCss,
createTheme,
keyframes,
@joeyfigaro
joeyfigaro / aws-osx-resolution.md
Created Apr 16, 2021
Fix display resolution on AWS mac1.metal machines
View aws-osx-resolution.md

Install displayplacer

brew tap jakehilborn/jakehilborn && brew install displayplacer

Grab persistent screen id and desired resolution from output:

displayplacer list

Use screen id and resolution from previous step

displayplacer "id:<persistentScreenID> res:<resolution> origin:(0,0) degree:0"

@joeyfigaro
joeyfigaro / find-with-filtering.md
Created Apr 6, 2021
['find' with path filtering] Find target files while ecluding a set of specified directories #osx #find #monorepos #commandline
View find-with-filtering.md
find / -name MyFile ! -path '*/Directory/*'

Example

Find all package.json files in monorepo packages (excluding node_modules/* and specific package location)

find . -name 'package.json' ! -path '*/node_modules/*' ! -path '*/prisma/generated/*'
View useInviteContacts.ts
import React from 'react'
import { Contact } from 'react-native-contacts'
import { difference, without } from 'rambda'
type RoleStateKey = 'administrator' | 'guest' | 'contributor'
export type UseInviteContacts = {
toggleRecipient: (c: Contact) => void
toggleAdministrator: (c: Contact) => void
toggleContributor: (c: Contact) => void
View valid.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Valid Polygon.kml</name>
<Style id="s_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
@joeyfigaro
joeyfigaro / SketchSystems.spec
Last active Jun 7, 2019
# Flight-Planning (KML Imports without S3 Uploading/Persisted KML)
View SketchSystems.spec
# Flight-Planning (KML Imports without S3 Uploading/Persisted KML)
Flight Planning*
# User dropped / imported KML file
Empty*
drop KML file -> KML Added
import KML file manually -> KML Added
KML Added
# Begins as soon as a user drops/attaches a KML file
Create Readable File
@joeyfigaro
joeyfigaro / SketchSystems.spec
Last active Jun 7, 2019
# Flight-Planning (KML Imports)
View SketchSystems.spec
# Flight-Planning (KML Imports)
Flight Planning*
# User dropped / attached KML file via advanced settings
Empty*
add KML file -> KML Added
KML Added
remove KML file -> Empty
# Begins as soon as a user drops/attaches a KML file
Create Readable File