I hereby claim:
- I am morajabi on github.
- I am morajabi (https://keybase.io/morajabi) on keybase.
- I have a public key ASCPpYSKHC9c0nSXk3DPQS6uJsTJHJk5hE49pS0wJ2FPcAo
To claim this, I am signing this object:
import AppKit | |
import Charts | |
import CoreVideo | |
import SwiftUI | |
struct FPSMeasurement: Identifiable, Equatable { | |
let id: Int | |
let fps: Int | |
static func == (lhs: FPSMeasurement, rhs: FPSMeasurement) -> Bool { |
# .github/workflows/test.yml | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main |
import SwiftUI | |
struct FormStateData { | |
var loading: Bool | |
var error: String? | |
var succeeded: Bool? | |
} | |
// A helper for easier state management for simple forms | |
class FormState: ObservableObject { |
import { useMemo } from 'react' | |
import { useState } from 'react' | |
export function useHover() { | |
const [hovered, setHovered] = useState(false) | |
let callbacks = useMemo( | |
() => ({ | |
onMouseEnter: () => { | |
setHovered(true) | |
}, |
I hereby claim:
To claim this, I am signing this object:
{ | |
"version": 2, | |
"alias": ["there.team"], | |
"builds": [ | |
{ "src": "web/package.json", "use": "@now/next" }, | |
{ | |
"src": "api/lambda.js", | |
"use": "@now/node", | |
"config": { | |
"includeFiles": [ |
# shows all url+titles of Chrome along with front window+tab url+title | |
set titleString to "" | |
tell application "Google Chrome" | |
set window_list to every window # get the windows | |
repeat with the_window in window_list # for every window | |
set tab_list to every tab in the_window # get the tabs | |
repeat with the_tab in tab_list # for every tab |
import { useLayoutEffect, useCallback, useState } from 'react' | |
export const useRect = (ref) => { | |
const [rect, setRect] = useState(getRect(ref ? ref.current : null)) | |
const handleResize = useCallback(() => { | |
if (!ref.current) { | |
return | |
} |
import styled, { css } from 'styled-components' | |
import { mobile } from '../style/media' | |
type Props = { | |
width?: number | |
height?: number | |
widthOnMobile?: number | |
heightOnMobile?: number | |
fillRow?: boolean | |
fillColumn?: boolean |
import * as React from 'react' | |
import { Link as GatsbyLink } from 'gatsby' | |
// Local | |
import { UnstyledButton } from './UnstyledButton' | |
type Props = { | |
/** For local gaysby routes/links */ | |
to?: string | |
/** For external links with e.g. https://google.com outside Gatsby */ |