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
↓ 281 callers
Function
append
(lineString: string)
assets/js/admin/solutions.tsx:40
↓ 229 callers
Function
cardRune
(number T, suit int)
hole/poker.go:27
↓ 119 callers
Function
$
(selector: string)
assets/js/_util.ts:70
↓ 117 callers
Method
Get
(any, string, ...any)
db/db.go:35
↓ 80 callers
Function
shuffle
Returning the slice is a convenience, the shuffle is still in-place.
hole/0hole.go:150
↓ 75 callers
Function
Database
Database gets the database handle from the request context.
session/session.go:29
↓ 72 callers
Function
answerFunc
Set the answer func on the Hole by ID, return any to allow top-level call.
hole/0hole.go:96
↓ 65 callers
Function
randInt
Return a random integer between min and max inclusive.
hole/0hole.go:144
↓ 64 callers
Function
param
(r *http.Request, key string)
routes/util.go:16
↓ 56 callers
Method
String
()
hole/intersection.go:13
↓ 56 callers
Function
outputTests
(tests ...[]test)
hole/0hole.go:107
↓ 44 callers
Method
Select
(any, string, ...any)
db/db.go:48
↓ 38 callers
Function
Golfer
Golfer gets the golfer from the request context.
session/session.go:34
↓ 38 callers
Function
render
(w http.ResponseWriter, r *http.Request, name string, data ...any)
routes/render.go:25
↓ 23 callers
Method
String
()
uuid/uuid.go:23
↓ 22 callers
Method
MustExec
(string, ...any)
db/db.go:37
↓ 21 callers
Method
Earn
Earn the given cheevo, no-op if already earned.
golfer/golfer.go:104
↓ 21 callers
Function
getSolutionCode
(lang: string, solution: 0 | 1)
assets/js/_hole-common.tsx:176
↓ 20 callers
Method
Write
(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value)
langs/powershell/powershell.cs:171
↓ 19 callers
Function
Comma
Comma returns a string of an integer with thousand separators.
pretty/pretty.go:32
↓ 18 callers
Method
Scan
(src any)
routes/golfer_settings_sessions.go:13
↓ 16 callers
Method
QueryRow
(string, ...any)
db/db.go:46
↓ 16 callers
Function
randWord
Return a random word from words.txt.
hole/0hole.go:147
↓ 16 callers
Method
toString
(trimRight bool)
hole/qr.go:85
↓ 15 callers
Function
$$
(selector: string)
assets/js/_util.ts:74
↓ 15 callers
Function
comma
(i: number | undefined)
assets/js/_util.ts:77
↓ 15 callers
Function
fixedTests
Return a copy so holes are free to append, shuffle, etc.
hole/0hole.go:91
↓ 15 callers
Function
redir
(templateURL string)
routes/util.go:21
↓ 13 callers
Function
getAutoSaveKey
(lang: string, solution: 0 | 1)
assets/js/_hole-common.tsx:164
↓ 12 callers
Function
encodeJSON
(w http.ResponseWriter, v any)
routes/api.go:359
↓ 12 callers
Function
group
(name, slug string, linkNames ...string)
config/nav.go:176
↓ 12 callers
Function
levenshteinTest
(a, b string)
hole/levenshtein-distance.go:10
↓ 10 callers
Function
NullIfZero
(value T)
null/null.go:22
↓ 10 callers
Function
benchHole
(b *testing.B, id string)
hole/play_test.go:20
↓ 9 callers
Function
Get
(r *http.Request)
session/session.go:24
↓ 9 callers
Method
WriteLine
(string value)
langs/powershell/powershell.cs:191
↓ 9 callers
Function
blcNum
(n int)
hole/binary-lambda-calculus.go:8
↓ 9 callers
Method
get
(i, j int)
hole/game-of-life.go:60
↓ 9 callers
Function
plainComponent
(componentType: string)
assets/js/hole/tabs.tsx:378
↓ 9 callers
Function
randChoice
Return a random element from the given slice. Panics on empty slice.
hole/0hole.go:141
↓ 9 callers
Function
randomOdd
(max int)
hole/jacobi-symbol.go:20
↓ 8 callers
Method
get8
(i, j, dir int)
hole/qr.go:36
↓ 8 callers
Function
letterVal
(note string)
hole/musical-chords.go:42
↓ 8 callers
Function
randBool
Return a random bool.
hole/0hole.go:138
↓ 8 callers
Function
randomNatural
(max int)
hole/jacobi-symbol.go:9
↓ 7 callers
Function
GolferInfo
GolferInfo gets the GolferInfo object from the request context.
session/session.go:39
↓ 7 callers
Function
ID
ID is a lowercase simplified version of the name used in URLs and the DB. Some characters (like "#") are changed to be safe in URLs.
config/config.go:31
↓ 7 callers
Function
afterDOM
()
assets/js/hole/tabs.tsx:324
↓ 7 callers
Function
amount
(n: number, singular: string, plural?: string)
assets/js/_util.ts:79
↓ 7 callers
Function
getTitle
(name: string)
assets/js/hole/tabs.tsx:374
↓ 7 callers
Function
lines
(s: string)
assets/js/_diff.tsx:402
↓ 7 callers
Function
medalTallyTest
(size, g, s, b, tie int)
hole/medal-tally.go:44
↓ 7 callers
Function
outputTestsWithSep
(sep string, testRuns ...[]test)
hole/0hole.go:109
↓ 6 callers
Method
Scan
(src any)
uuid/uuid.go:19
↓ 6 callers
Function
autoFocus
(container: ComponentContainer)
assets/js/hole/tabs.tsx:210
↓ 6 callers
Function
refreshScores
(editor: any)
assets/js/_hole-common.tsx:286
↓ 6 callers
Function
scanID
(thing *T, src any, lookup map[string]*T)
config/sql.go:40
↓ 5 callers
Method
Len
()
hole/huffman.go:37
↓ 5 callers
Function
New
(r *http.Request)
pager/pager.go:17
↓ 5 callers
Function
Render
(w io.Writer, name string, data any)
views/views.go:142
↓ 5 callers
Function
Settings
Settings gets the page settings map from the request context.
session/session.go:44
↓ 5 callers
Method
escape
(text: string)
assets/js/_unprintable.ts:98
↓ 5 callers
Function
genExpr
(init int, expander func(*Node, int), expandCount int)
hole/reverse-polish-notation.go:99
↓ 5 callers
Method
get
(i, j int)
hole/qr.go:21
↓ 5 callers
Function
getLang
()
assets/js/_hole-common.tsx:129
↓ 5 callers
Function
getPrevNextHole
Get prev/next hole with order based on homepage settings.
routes/home_cards.go:31
↓ 5 callers
Function
intToBFString
(n int)
hole/brainfuck.go:27
↓ 5 callers
Function
makeLookup
(chars: string)
assets/js/lang-allowed-strokes.tsx:1
↓ 5 callers
Method
test
(day int, hour int)
hole/zodiac-signs.go:53
↓ 5 callers
Function
toLowerConditionally
(text string, caseFold bool)
hole/judges.go:89
↓ 5 callers
Function
unmarshal
(file string, value any)
config/config.go:33
↓ 5 callers
Function
updateResults
(results: SearchNavResult[])
assets/js/base.tsx:117
↓ 4 callers
Method
Calculate
()
pager/pager.go:24
↓ 4 callers
Method
FollowLimit
FollowLimit returns the max number of golfers this golfer can follow.
golfer/golfer.go:128
↓ 4 callers
Method
Location
()
golfer/golfer.go:149
↓ 4 callers
Function
New
(value T, valid bool)
null/null.go:18
↓ 4 callers
Function
Page
Page returns which page a given row will appear on.
pager/pager.go:59
↓ 4 callers
Function
ThisWeek
ThisWeek returns the start of the current week (Monday, NOT Sunday).
config/hole_of_the_week.go:85
↓ 4 callers
Function
Time
Time returns a fuzzy HTML <time> tag of a time.Time. a min ago 2 mins ago ... 59 mins ago 119 mins ago 2 hours ago ..
pretty/pretty.go:126
↓ 4 callers
Function
byteLen
(str: string)
assets/js/_util.ts:5
↓ 4 callers
Function
changePage
(u *url.URL, page int)
pager/pager.go:61
↓ 4 callers
Function
charLen
(str: string)
assets/js/_util.ts:6
↓ 4 callers
Function
checkDigit
(digits [9]int)
hole/isbn.go:8
↓ 4 callers
Function
countHandTiles
(hand string)
hole/mahjong.go:17
↓ 4 callers
Function
groupHoles
(includeExperimental bool)
config/nav.go:212
↓ 4 callers
Function
groupLangs
(includeExperimental bool)
config/nav.go:239
↓ 4 callers
Function
judge
Set the judge on the Hole by ID, return any to allow top-level call.
hole/0hole.go:102
↓ 4 callers
Function
outputMultirunTests
(tests []test)
hole/0hole.go:131
↓ 4 callers
Function
parseInt
(k string)
hole/css-grid.go:35
↓ 4 callers
Function
pushToDiff
(diff: Diff.Change[], entry: Diff.Change, join: string)
assets/js/_diff.tsx:69
↓ 4 callers
Function
randomInClass
(max, mod, class int)
hole/jacobi-symbol.go:16
↓ 4 callers
Function
recAnnounceToEmbed
recAnnounceToEmbed parses a recAnnouncement object and turns it into a Discord embed
discord/bot.go:121
↓ 4 callers
Function
setSolution
(value: 0 | 1)
assets/js/_hole-common.tsx:187
↓ 4 callers
Function
stringsEqual
(a: string, b: string, ignoreCase: boolean)
assets/js/_diff.tsx:236
↓ 4 callers
Function
submit
( editor: any, // eslint-disable-next-line no-unused-vars updateReadonlyPanels: (d: ReadonlyPanels
assets/js/_hole-common.tsx:549
↓ 3 callers
Function
Exists
(name string)
assets/assets.go:47
↓ 3 callers
Function
GetConnections
(db db.Queryable, golferID int, onlyPublic bool)
oauth/oauth.go:109
↓ 3 callers
Function
GetInfo
(db *sqlx.DB, name string)
golfer/get.go:96
↓ 3 callers
Function
HoleOfTheWeek
()
config/hole_of_the_week.go:26
↓ 3 callers
Method
Pop
()
hole/huffman.go:47
next →
1–100 of 650, ranked by callers