Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AleksandrHovhannisyan/aleksandrhovhannisyan.com
/ functions
Functions
93 in github.com/AleksandrHovhannisyan/aleksandrhovhannisyan.com
⨍
Functions
93
◇
Types & classes
20
↓ 8 callers
Method
isKeyDown
(key: string)
packages/web/src/assets/scripts/components/gameLoop.ts:238
↓ 7 callers
Function
NON_EMPTY_ARRAY
(type)
packages/web/lib/schema.ts:10
↓ 4 callers
Method
from
* Returns a copy of a vector.
packages/web/src/assets/scripts/components/gameLoop.ts:46
↓ 4 callers
Function
getLatestCollectionItemDate
(collection: Partial<FrontMatter & { data: Partial<FrontMatter> }>[])
packages/web/lib/filters.ts:92
↓ 4 callers
Function
limit
(array: unknown[], limit: number)
packages/web/lib/filters.ts:10
↓ 4 callers
Function
withoutBaseDirectory
(pathString: string)
packages/web/lib/utils/file.ts:3
↓ 3 callers
Function
get
(object: Record<string, unknown>, keyPath: string)
packages/web/lib/utils/index.ts:8
↓ 3 callers
Function
makeMarkdownParser
(options?: MakeMarkdownParserOptions)
packages/web/lib/plugins/markdown.ts:139
↓ 3 callers
Function
memoize
(fn: (...args: unknown[]) => unknown)
packages/web/lib/utils/index.ts:18
↓ 3 callers
Method
scaled
Returns a new vector that's the result of scaling this vector by the given scalar.
packages/web/src/assets/scripts/components/gameLoop.ts:26
↓ 3 callers
Function
sortByKey
( arrayOfObjects: Record<string, unknown>[], keyPath: string, order: 'ASC' | 'DESC' = 'ASC' )
packages/web/lib/filters.ts:18
↓ 2 callers
Function
getAllPosts
(collection)
packages/web/lib/collections.ts:7
↓ 2 callers
Function
getCategoryHref
Given a category name, returns the root-relative URL to that category's page.
packages/web/lib/collections.ts:14
↓ 2 callers
Function
getDistanceToFocalPoint
* Returns the distance from the starting edge of the viewport to the given focal point on the element.
packages/web/src/assets/scripts/components/carousel.ts:17
↓ 2 callers
Function
getLanguage
(lang?: string)
packages/web/lib/plugins/markdown.ts:54
↓ 2 callers
Function
makeSchemaValidator
(schema: v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>)
packages/web/lib/schema.ts:180
↓ 2 callers
Method
move
Moves the player at its current speed in its current direction.
packages/web/src/assets/scripts/components/gameLoop.ts:166
↓ 2 callers
Function
sanitizeHtml
(html: string)
packages/web/lib/utils/string.ts:14
↓ 2 callers
Method
setMoveSpeed
(moveSpeed: number)
packages/web/src/assets/scripts/components/gameLoop.ts:156
↓ 2 callers
Function
setTheme
* @param {HTMLFormElement} themePickerForm * @param {string} theme
packages/web/src/_includes/js/themePicker.js:24
↓ 2 callers
Method
setTurnSpeed
(turnSpeedRadians: number)
packages/web/src/assets/scripts/components/gameLoop.ts:160
↓ 2 callers
Function
toAbsoluteImageUrl
({ src, outputDir = 'dist/assets/images', width = null })
packages/web/lib/filters.ts:50
↓ 2 callers
Function
toRadians
(degrees: number)
packages/web/src/assets/scripts/components/gameLoop.ts:1
↓ 2 callers
Function
toSmartQuotes
(text: string)
packages/web/lib/filters.ts:128
↓ 2 callers
Method
turn
* Rotates this player at its .
packages/web/src/assets/scripts/components/gameLoop.ts:175
↓ 2 callers
Method
update
()
packages/web/src/assets/scripts/components/gameLoop.ts:276
↓ 2 callers
Function
where
(arrayOfObjects: Record<string, unknown>[], keyPath: string, value: unknown)
packages/web/lib/filters.ts:40
↓ 1 callers
Function
buildAssets
()
packages/web/build.ts:12
↓ 1 callers
Method
circle
Draws a circle on the canvas at the specified coordinates.
packages/web/src/assets/scripts/components/gameLoop.ts:94
↓ 1 callers
Method
clear
Clears the canvas with a solid color.
packages/web/src/assets/scripts/components/gameLoop.ts:87
↓ 1 callers
Function
closeDialog
()
packages/web/src/assets/scripts/dialog.ts:19
↓ 1 callers
Method
draw
()
packages/web/src/assets/scripts/components/gameLoop.ts:257
↓ 1 callers
Function
fetch
Returns comments for a given post by ID. https://developers.cloudflare.com/workers/runtime-apis/handlers/ * @param request The incoming HTTP reques
packages/api/comments/comments.ts:65
↓ 1 callers
Function
fetchComments
* Generator that yields one comment at a time for the given repo issue.
packages/api/comments/comments.ts:14
↓ 1 callers
Function
fetchComments
* Generator that yields one parsed JSON object at a time. Each object represents a post comment on my blog. * @throws {CommentAPIError}
packages/web/src/assets/scripts/comments.ts:15
↓ 1 callers
Function
getAllUniqueCategories
(collection)
packages/web/lib/collections.ts:25
↓ 1 callers
Function
getFocalPoint
* Returns the focal point for the given element, as determined by its scroll-snap-align (falling back to the fallback if not specified). * @param ele
packages/web/src/assets/scripts/components/carousel.ts:10
↓ 1 callers
Function
getImage
()
packages/web/src/_posts/_posts.11tydata.ts:93
↓ 1 callers
Function
iconShortcode
(props: Partial<IconProps>)
packages/web/lib/shortcodes/icon.ts:12
↓ 1 callers
Method
line
Draws a line on the canvas from `(x1, y1)` to `(x2, y2)`.
packages/web/src/assets/scripts/components/gameLoop.ts:102
↓ 1 callers
Function
makeDateFormatter
()
packages/web/lib/filters.ts:67
↓ 1 callers
Function
makeFencedCodeRenderer
( markdownIt: markdownIt, isTrustedInput?: MakeMarkdownParserOptions['isTrustedInput'] )
packages/web/lib/plugins/markdown.ts:61
↓ 1 callers
Function
makeRelativeTimeStringGetter
()
packages/web/lib/utils/date.ts:1
↓ 1 callers
Function
makeStringEscaper
(keyMap: Map<string, string>)
packages/web/lib/utils/string.ts:35
↓ 1 callers
Function
makeSyntaxHighlighter
(markdownIt: markdownIt, isTrustedInput?: MakeMarkdownParserOptions['isTrustedInput'])
packages/web/lib/plugins/markdown.ts:104
↓ 1 callers
Method
navigateToNextItem
(direction: 'start' | 'end')
packages/web/src/assets/scripts/components/carousel.ts:85
↓ 1 callers
Method
normalized
Returns a new vector that's the result of normalizing this vector (i.e., a unit vector of length `1` in the same direction).
packages/web/src/assets/scripts/components/gameLoop.ts:31
↓ 1 callers
Function
parseStream
(response: Response)
packages/web/src/assets/scripts/utils.ts:37
↓ 1 callers
Function
renderComment
* @param template An HTML template element that defines the markup for a comment. * @param comment The user comment to render.
packages/web/src/assets/scripts/comments.ts:37
↓ 1 callers
Method
rotated
Returns a new vector that's the result of rotating this vector by the given change in angle, in radians.
packages/web/src/assets/scripts/components/gameLoop.ts:36
↓ 1 callers
Function
slugifyString
(str: string)
packages/web/lib/utils/string.ts:5
↓ 1 callers
Function
throttle
(callback: (...args: unknown[]) => void, rateMs: number)
packages/web/src/assets/scripts/utils.ts:6
↓ 1 callers
Function
toAbsoluteUrl
(url: string, baseUrl: string = site.url)
packages/web/lib/filters.ts:47
↓ 1 callers
Function
toISOString
(date: Date | string)
packages/web/lib/filters.ts:65
↓ 1 callers
Method
updatePhysics
()
packages/web/src/assets/scripts/components/gameLoop.ts:242
Method
_render
(templateHtml: string)
packages/web/src/assets/scripts/components/codeDemo.ts:159
Method
angle
Returns this vector's angle, in radians.
packages/web/src/assets/scripts/components/gameLoop.ts:21
Function
artworkShortcode
(content: string, id: string, description: string)
packages/web/lib/shortcodes/artwork.ts:1
Function
aside
(children: string)
packages/web/lib/shortcodes/aside.ts:3
Method
attributeChangedCallback
(name, _oldValue, newValue)
packages/web/src/assets/scripts/components/gameLoop.ts:222
Method
connectedCallback
()
packages/web/src/assets/scripts/components/gameLoop.ts:215
Method
connectedCallback
()
packages/web/src/assets/scripts/components/carousel.ts:44
Method
constructor
(message: string)
packages/web/src/assets/scripts/comments.ts:6
Method
constructor
(x = 0, y = 0)
packages/web/src/assets/scripts/components/gameLoop.ts:10
Method
constructor
(canvas: HTMLCanvasElement)
packages/web/src/assets/scripts/components/gameLoop.ts:72
Method
constructor
({ position, direction, moveSpeed, turnSpeedDegrees, radius, }: { position: Vector2;
packages/web/src/assets/scripts/components/gameLoop.ts:132
Method
constructor
()
packages/web/src/assets/scripts/components/gameLoop.ts:188
Method
constructor
()
packages/web/src/assets/scripts/components/carousel.ts:40
Method
constructor
()
packages/web/src/assets/scripts/components/carousel.ts:113
Method
constructor
()
packages/web/src/assets/scripts/components/carousel.ts:128
Function
definition
(children: string, term: string)
packages/web/lib/shortcodes/definition.ts:4
Function
details
(children: string, summary: string, open = false)
packages/web/lib/shortcodes/details.ts:3
Method
disconnectedCallback
()
packages/web/src/assets/scripts/components/carousel.ts:61
Method
dot
* Returns the dot product of two vectors.
packages/web/src/assets/scripts/components/gameLoop.ts:60
Function
eleventy
(eleventyConfig)
packages/web/.eleventy.ts:42
Function
faviconShortcode
(src: string)
packages/web/lib/shortcodes/favicon.ts:10
Function
fetchText
(url: string, duration: string)
packages/web/lib/shortcodes/fetchText.ts:3
Method
fromAngle
* Returns a new vector constructed from the given angle.
packages/web/src/assets/scripts/components/gameLoop.ts:53
Function
getAssetOutputPath
(inputPath: string)
packages/web/lib/filters.ts:145
Function
getBuildInfo
()
packages/web/src/_data/buildInfo.ts:3
Function
getPostsByCategory
(collection)
packages/web/lib/collections.ts:54
Function
handleChange
@param {Event} e
packages/web/src/_includes/js/themePicker.js:29
Method
height
()
packages/web/src/assets/scripts/components/gameLoop.ts:81
Method
length
Returns the Cartesian length of this vector.
packages/web/src/assets/scripts/components/gameLoop.ts:16
Function
nanoid
(length: number = 6, prefix = 'id-')
packages/web/lib/shortcodes/nanoid.ts:3
Function
pathJoin
(...paths: string[])
packages/web/lib/filters.ts:123
Function
pathParse
(srcPath: string, key: 'name' | 'dir')
packages/web/lib/filters.ts:121
Function
quote
(children: string, sourceName: string, sourceUrl: string)
packages/web/lib/shortcodes/quote.ts:7
Function
setup
(build)
packages/web/build.ts:40
Function
showDialog
()
packages/web/src/assets/scripts/dialog.ts:12
Function
start
(controller)
packages/api/comments/comments.ts:101
Function
toHtml
(markdownString: string)
packages/web/lib/filters.ts:44
Method
width
()
packages/web/src/assets/scripts/components/gameLoop.ts:77