Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code-golf/code-golf
/ functions
Functions
650 in github.com/code-golf/code-golf
⨍
Functions
650
◇
Types & classes
120
↓ 2 callers
Function
pangramGrepTests
(l, r int)
hole/pangram-grep.go:16
↓ 2 callers
Function
parseTime
(s string)
config/hole_of_the_week_test.go:31
↓ 2 callers
Function
perOutputJudge
Creates a judge by treating an output as a sequence of delimited outputs, each corresponding to a respective input. The final expected output length's
hole/judges.go:28
↓ 2 callers
Function
populateHolesLangsTables
(db *sqlx.DB)
main.go:184
↓ 2 callers
Function
populateScores
(editor: any)
assets/js/_hole-common.tsx:768
↓ 2 callers
Function
printSudoku
(board [boardSize][boardSize]int)
hole/sudoku.go:15
↓ 2 callers
Function
qr
(decoder bool)
hole/qr.go:114
↓ 2 callers
Function
randReplacements
Randomly create splits and fouls to make it more interesting.
hole/ten-pin-bowling.go:35
↓ 2 callers
Method
randomDate
(hour int)
hole/zodiac-signs.go:41
↓ 2 callers
Function
removeDragSource
(componentType: string)
assets/js/hole/tabs.tsx:599
↓ 2 callers
Function
renderCharDiff
(className: string, charDiff: Diff.Change[], isRight: boolean)
assets/js/_diff.tsx:388
↓ 2 callers
Function
repeatingDecimalsTest
(p, q int)
hole/repeating-decimals.go:31
↓ 2 callers
Function
reverseBytes
(s []byte)
hole/p-adic-expansion.go:5
↓ 2 callers
Function
saveLastAnnouncement
(announce *RecAnnouncement, db *sqlx.DB)
discord/bot.go:471
↓ 2 callers
Function
scrambledSortTest
(alphabet []byte, words []string)
hole/scrambled-sort.go:47
↓ 2 callers
Function
setCode
(code: string, editor: EditorView | null)
assets/js/_hole-common.tsx:216
↓ 2 callers
Function
smoothOutput
(n, k int)
hole/smooth-numbers.go:35
↓ 2 callers
Function
solveSudoku
(board *[boardSize][boardSize]int, cell int, count *int)
hole/sudoku.go:52
↓ 2 callers
Function
straightCheck
(numbers []int)
hole/poker.go:36
↓ 2 callers
Function
strokeLen
(str: string, allowedStrokes: Set<number>)
assets/js/_util.ts:49
↓ 2 callers
Function
sudoku
(fillIn bool)
hole/sudoku.go:174
↓ 2 callers
Method
toString
()
hole/game-of-life.go:86
↓ 2 callers
Function
toggleMobile
(_isMobile: boolean)
assets/js/hole/tabs.tsx:661
↓ 2 callers
Function
tooltip
(row: any, scoring: 'Bytes' | 'Chars')
assets/js/_hole-common.tsx:339
↓ 2 callers
Function
transpose
(s string)
hole/transpose-sentence.go:31
↓ 2 callers
Function
trimPerLine
(bytesSlice []byte)
hole/play.go:39
↓ 2 callers
Function
tsort
does not support isolated nodes cycles are insurmountable obstructions
hole/topological-sort.go:12
↓ 2 callers
Function
unbox
compute bottom-right (br) bbox coordinates
hole/intersection.go:16
↓ 2 callers
Function
updateHoleLangNotesContent
()
assets/js/hole/tabs.tsx:106
↓ 2 callers
Function
updateLangPicker
()
assets/js/_hole-common.tsx:222
↓ 2 callers
Function
updateLocalStorage
(code: string)
assets/js/_hole-common.tsx:710
↓ 2 callers
Function
updateMobileContainerHeight
()
assets/js/hole/tabs.tsx:733
↓ 2 callers
Function
updateReadonlyPanel
(name: string)
assets/js/hole/tabs.tsx:72
↓ 2 callers
Function
updateUsernamesBatch
(db *sqlx.DB, ids []string)
github/update_usernames.go:55
↓ 2 callers
Function
updateWikiContent
()
assets/js/hole/tabs.tsx:99
↓ 1 callers
Function
All
(ts []T, pred func(T) bool)
hole/css-grid.go:79
↓ 1 callers
Function
AwardRoles
AwardRoles awards Discord roles based on cheevos etc.
discord/bot.go:236
↓ 1 callers
Function
Bytes
Bytes returns a string of integer bytes formatted as B/KiB/MiB/GiB.
pretty/pretty.go:17
↓ 1 callers
Function
Create
(r *http.Request)
session/session.go:20
↓ 1 callers
Function
Database
Database adds the database handle to the context.
middleware/database.go:11
↓ 1 callers
Method
Earned
Earned returns whether the golfer has that cheevo.
golfer/golfer.go:122
↓ 1 callers
Method
FromFormValue
(value string)
config/settings.go:73
↓ 1 callers
Function
Get
Get a Golfer given a session ID, updates the session's last used time.
golfer/get.go:13
↓ 1 callers
Function
LogNewRecord
LogNewRecord logs a record breaking solution in Discord.
discord/bot.go:332
↓ 1 callers
Function
Open
Open a connection pool to the Database.
db/db.go:21
↓ 1 callers
Function
PopulateHolesOfTheWeek
(db db.Queryable)
config/hole_of_the_week.go:47
↓ 1 callers
Method
Scan
(src any)
config/sql.go:16
↓ 1 callers
Method
SponsorOrAdmin
()
golfer/golfer.go:174
↓ 1 callers
Method
String
()
hole/quadratic-formula.go:77
↓ 1 callers
Function
Title
(s string)
pretty/pretty.go:166
↓ 1 callers
Function
UpdateHoleOfTheWeekTopic
()
discord/bot.go:489
↓ 1 callers
Function
WalkObject
(JsonObject obj)
langs/f-sharp/trimmer.cs:48
↓ 1 callers
Function
Wiki
TODO Make our own minimal wiki that doesn't use GitHub. Reward contrib.
github/wiki.go:20
↓ 1 callers
Function
_getLangWikiContent
(lang: string)
assets/js/_hole-common.tsx:30
↓ 1 callers
Function
abs
(i int)
zone/zone.go:69
↓ 1 callers
Function
addItemFromPool
* Try to add after selected item, with sensible defaults
assets/js/hole/tabs.tsx:501
↓ 1 callers
Function
addPoolItem
(componentType: string)
assets/js/hole/tabs.tsx:560
↓ 1 callers
Function
applyInitialLayout
()
assets/js/hole/tabs.tsx:472
↓ 1 callers
Function
avatar
(rawURL: string, size: number)
assets/js/_util.ts:37
↓ 1 callers
Function
badgeSVG
(label, value, color string)
routes/badge.go:126
↓ 1 callers
Function
calendar
(month, year int)
hole/calendar.go:10
↓ 1 callers
Function
callbackGET
GET /callback
routes/callback.go:28
↓ 1 callers
Method
checkDirection
(row, col, dr, dc, player int)
hole/connect-four.go:29
↓ 1 callers
Function
checkMobile
()
assets/js/hole/tabs.tsx:682
↓ 1 callers
Method
checkWinner
(player int)
hole/connect-four.go:43
↓ 1 callers
Function
closestNumbrixMatch
closestNumbrixMatch tries to build a valid Numbrix solution that overlaps with userGrid by preferring the user's chosen positions for each number (wit
hole/numbrix.go:147
↓ 1 callers
Function
computeZeckendorf
(n int32)
hole/zeckendorf-representation.go:10
↓ 1 callers
Function
convertNotesAndRun
()
assets/js/hole/tabs.tsx:276
↓ 1 callers
Function
cookie
(r *http.Request, name string)
routes/util.go:9
↓ 1 callers
Function
copy_file
langs/go/go.c:72
↓ 1 callers
Function
copy_file
langs/gleam/gleam.c:75
↓ 1 callers
Function
copy_folder
langs/go/go.c:96
↓ 1 callers
Function
copy_folder
langs/gleam/gleam.c:99
↓ 1 callers
Function
debounce
(func: () => void, timeout = 500)
assets/js/_util.ts:109
↓ 1 callers
Function
debounce
(func: Function, timeout = 500)
assets/js/_search-nav.ts:143
↓ 1 callers
Function
defaultJudge
(run Run)
hole/judges.go:15
↓ 1 callers
Function
delinkRankingsView
()
assets/js/hole/tabs.tsx:326
↓ 1 callers
Function
diamondPopups
(updates: RankUpdate[], experimental: boolean)
assets/js/_hole-common.tsx:501
↓ 1 callers
Function
diffHTMLRows
(hole: string, exp: string, out: string, argv: string[], ignoreCase: boolean, isArgDiff: boolean)
assets/js/_diff.tsx:198
↓ 1 callers
Function
dig
http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking
hole/maze.go:24
↓ 1 callers
Method
dropDisc
(col, player int)
hole/connect-four.go:17
↓ 1 callers
Function
each_join
Based on the original Bash implementation: https://stackoverflow.com/a/17841619/7481517
langs/tex/tex.c:153
↓ 1 callers
Method
edgeDate
(hour int)
hole/zodiac-signs.go:45
↓ 1 callers
Function
emulPlay
()
hole/connect-four.go:61
↓ 1 callers
Function
encodeDecodeSequence
(s string)
hole/rot13.go:45
↓ 1 callers
Function
fillRect
(rect [rectSize][rectSize]byte)
hole/rectangle-fill.go:71
↓ 1 callers
Function
findExit
(dist [height][width]int)
hole/maze.go:41
↓ 1 callers
Function
firstDifference
(left: string[], right: string[], ignoreCase: boolean)
assets/js/_diff.tsx:164
↓ 1 callers
Function
formatDistance
(secs int)
hole/time-distance.go:19
↓ 1 callers
Function
formatGridQuestion
(board GridTestCase)
hole/css-grid.go:61
↓ 1 callers
Function
formatGridSolution
(solution GridSolution)
hole/css-grid.go:19
↓ 1 callers
Function
genGridTestCase
()
hole/css-grid.go:122
↓ 1 callers
Function
genInvalidHand
(mutationCount int)
hole/mahjong.go:131
↓ 1 callers
Function
genNotes
(rootIdx int, rootNote string, steps [2]int)
hole/musical-chords.go:44
↓ 1 callers
Function
genQr
(content string)
hole/qr.go:52
↓ 1 callers
Function
genRandomSequence
()
hole/mahjong.go:78
↓ 1 callers
Function
genRandomSevenPairs
()
hole/mahjong.go:102
↓ 1 callers
Function
genRandomStandardHand
()
hole/mahjong.go:84
↓ 1 callers
Function
genRandomThirteenOrphans
()
hole/mahjong.go:115
↓ 1 callers
Function
genRandomTriplet
()
hole/mahjong.go:73
← previous
next →
201–300 of 650, ranked by callers