Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HamishMW/portfolio
/ functions
Functions
239 in github.com/HamishMW/portfolio
⨍
Functions
239
◇
Types & classes
0
↓ 39 callers
Function
pxToRem
app/utils/style.js:25
↓ 33 callers
Function
classes
(...classes)
app/utils/style.js:78
↓ 25 callers
Function
cssProps
(props, style = {})
app/utils/style.js:49
↓ 14 callers
Function
numToMs
app/utils/style.js:36
↓ 10 callers
Function
msToNum
app/utils/style.js:31
↓ 9 callers
Function
action
({ request, context })
app/routes/api.set-theme.js:3
↓ 9 callers
Function
useTheme
()
app/components/theme-provider/theme-provider.jsx:43
↓ 8 callers
Function
baseMeta
({ title, description, prefix = name, ogImage = defaultOgImage, })
app/utils/meta.js:6
↓ 7 callers
Function
getDelay
(delayMs, offset = numToMs(0), multiplier = 1)
app/routes/contact/contact.jsx:239
↓ 6 callers
Function
round
(num = 0)
app/routes/projects.smart-sparrow/earth.jsx:79
↓ 6 callers
Function
squish
(styles)
app/components/theme-provider/theme-provider.jsx:51
↓ 6 callers
Function
useInViewport
( elementRef, unobserveOnIntersect, options = {}, shouldObserve = true )
app/hooks/useInViewport.js:3
↓ 5 callers
Function
cleanRenderer
app/utils/three.js:57
↓ 5 callers
Function
cleanScene
app/utils/three.js:21
↓ 5 callers
Function
useWindowSize
()
app/hooks/useWindowSize.js:3
↓ 4 callers
Function
animate
()
app/components/carousel/carousel.jsx:230
↓ 4 callers
Function
createThemeProperties
(theme)
app/components/theme-provider/theme-provider.jsx:58
↓ 4 callers
Function
removeLights
app/utils/three.js:65
↓ 4 callers
Function
throttle
(func, timeFrame)
app/utils/throttle.js:1
↓ 4 callers
Function
zeroPrefix
(value)
app/utils/timecode.js:18
↓ 3 callers
Function
clamp
(number, boundOne, boundTwo)
app/utils/clamp.js:1
↓ 3 callers
Function
getChild
(name, object)
app/utils/three.js:74
↓ 3 callers
Function
getPositionValues
app/routes/projects.smart-sparrow/earth.jsx:68
↓ 3 callers
Function
handleCameraChange
(axis, value)
app/routes/projects.smart-sparrow/earth.jsx:272
↓ 3 callers
Function
handleChunkChange
(axis, value)
app/routes/projects.smart-sparrow/earth.jsx:286
↓ 3 callers
Function
interpolatePosition
(value, nextValue, percent)
app/routes/projects.smart-sparrow/earth.jsx:60
↓ 3 callers
Function
numToPx
app/utils/style.js:20
↓ 3 callers
Function
resolveSrcFromSrcSet
({ srcSet, sizes })
app/utils/image.js:66
↓ 3 callers
Function
useFormInput
(initialValue = '')
app/hooks/useFormInput.js:3
↓ 3 callers
Function
useScrollToHash
()
app/hooks/useScrollToHash.js:5
↓ 2 callers
Function
applyScreenTexture
(texture, node)
app/components/model/model.jsx:372
↓ 2 callers
Function
cleanMaterial
app/utils/three.js:40
↓ 2 callers
Function
determineIndex
(imageIndex, index, images, direction)
app/components/carousel/carousel.jsx:22
↓ 2 callers
Function
formatDate
(date)
app/utils/date.js:1
↓ 2 callers
Function
formatTimecode
(time)
app/utils/timecode.js:4
↓ 2 callers
Function
getCurrent
(url = '')
app/layouts/navbar/navbar.jsx:116
↓ 2 callers
Function
getIsVideo
(src)
app/components/image/image.jsx:213
↓ 2 callers
Function
isExternalLink
(href)
app/components/button/button.jsx:9
↓ 2 callers
Function
pauseVideo
()
app/components/image/image.jsx:108
↓ 2 callers
Function
positionToString
app/routes/projects.smart-sparrow/earth.jsx:63
↓ 2 callers
Function
readingTime
(text)
app/utils/timecode.js:22
↓ 2 callers
Function
renderDetails
(visible)
app/routes/home/project-summary.jsx:66
↓ 2 callers
Function
renderKatakana
(device, visible)
app/routes/home/project-summary.jsx:50
↓ 2 callers
Function
renderOutput
()
app/components/decoder-text/decoder-text.jsx:59
↓ 2 callers
Function
renderPreview
(visible)
app/routes/home/project-summary.jsx:101
↓ 2 callers
Function
resetNavTheme
()
app/layouts/navbar/navbar.jsx:52
↓ 2 callers
Function
toggleTheme
(newTheme)
app/root.jsx:89
↓ 2 callers
Function
useHydrated
()
app/hooks/useHydrated.js:7
↓ 2 callers
Function
useParallax
(multiplier, onChange)
app/hooks/useParallax.js:4
↓ 1 callers
Function
animate
()
app/routes/home/displacement-sphere.jsx:160
↓ 1 callers
Function
compare
(a, b)
app/routes/articles_._index/posts.server.js:35
↓ 1 callers
Function
createMediaTokenProperties
()
app/components/theme-provider/theme-provider.jsx:82
↓ 1 callers
Function
delay
(ms)
app/utils/delay.js:1
↓ 1 callers
Function
generateImage
(width = 1, height = 1)
app/utils/image.js:43
↓ 1 callers
Function
getMessage
()
app/layouts/error/error.jsx:17
↓ 1 callers
Function
getPosts
()
app/routes/articles_._index/posts.server.js:3
↓ 1 callers
Function
handleInversion
()
app/layouts/navbar/navbar.jsx:58
↓ 1 callers
Function
handleLoad
()
app/routes/projects.smart-sparrow/earth.jsx:383
↓ 1 callers
Function
handleNavItemClick
app/layouts/navbar/navbar.jsx:127
↓ 1 callers
Function
handleResize
()
app/components/model/model.jsx:307
↓ 1 callers
Function
handleResize
()
app/components/carousel/carousel.jsx:214
↓ 1 callers
Function
handleResize
()
app/routes/projects.volkihar-knight/armor.jsx:185
↓ 1 callers
Function
handleResize
()
app/hooks/useWindowSize.js:47
↓ 1 callers
Function
handleScroll
()
app/hooks/useParallax.js:22
↓ 1 callers
Function
isAnchor
(href)
app/components/link/link.jsx:9
↓ 1 callers
Function
isEqualPosition
(position1, position2)
app/routes/projects.smart-sparrow/earth.jsx:78
↓ 1 callers
Function
isOverlap
(rect1, rect2, scrollY)
app/layouts/navbar/navbar.jsx:48
↓ 1 callers
Function
load
()
app/routes/projects.volkihar-knight/armor.jsx:97
↓ 1 callers
Function
loadBackground
()
app/routes/projects.smart-sparrow/earth.jsx:375
↓ 1 callers
Function
loadEnv
()
app/routes/projects.smart-sparrow/earth.jsx:366
↓ 1 callers
Function
loadImageFromSrcSet
({ src, srcSet, sizes })
app/utils/image.js:5
↓ 1 callers
Function
loadImages
()
app/components/carousel/carousel.jsx:97
↓ 1 callers
Function
loadModel
()
app/routes/projects.smart-sparrow/earth.jsx:337
↓ 1 callers
Function
onLoad
()
app/utils/image.js:26
↓ 1 callers
Function
onModelLoad
()
app/components/model/model.jsx:502
↓ 1 callers
Function
playVideo
()
app/components/image/image.jsx:103
↓ 1 callers
Function
resolveVideoSrc
()
app/components/image/image.jsx:88
↓ 1 callers
Function
shuffle
(content, output, position)
app/components/decoder-text/decoder-text.jsx:32
↓ 1 callers
Function
sortBy
(arr, key, dir = 'asc')
app/routes/articles_._index/posts.server.js:28
↓ 1 callers
Function
startSpring
()
app/components/decoder-text/decoder-text.jsx:72
↓ 1 callers
Function
updateAnimation
app/routes/projects.smart-sparrow/earth.jsx:544
↓ 1 callers
Function
updateLabels
app/routes/projects.smart-sparrow/earth.jsx:571
↓ 1 callers
Function
updateMeshes
app/routes/projects.smart-sparrow/earth.jsx:491
↓ 1 callers
Function
useHasMounted
()
app/hooks/useHasMounted.js:3
↓ 1 callers
Function
useInterval
(callback, delay, reset)
app/hooks/useInterval.js:3
↓ 1 callers
Function
usePrevious
(value)
app/hooks/usePrevious.js:3
Function
Align
()
app/components/heading/heading.stories.jsx:33
Function
App
()
app/root.jsx:80
Function
Armor
({ showDelay = 0, cameraPosition = { x: 0, y: 0, z: 6 }, className, alt, ...rest })
app/routes/projects.volkihar-knight/armor.jsx:37
Function
ArrowLeft
()
app/components/carousel/carousel.jsx:414
Function
ArrowRight
()
app/components/carousel/carousel.jsx:422
Function
Articles
()
app/routes/articles_._index/articles.jsx:136
Function
Articles
()
app/routes/articles/route.jsx:28
Function
ArticlesPost
({ slug, frontmatter, timecode, index })
app/routes/articles_._index/articles.jsx:17
Function
Barcode
({ className })
app/routes/articles_._index/articles.jsx:189
Function
Carousel
({ width, height, images, placeholder, ...rest })
app/components/carousel/carousel.jsx:31
Function
Code
app/components/code/code.jsx:9
Function
Contact
()
app/routes/contact/contact.jsx:96
Function
Default
()
app/components/link/link.stories.jsx:8
Function
Default
()
app/components/table/table.stories.jsx:9
next →
1–100 of 239, ranked by callers