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
↓ 3 callers
Method
SaveSettings
SaveSettings saves golfer.Settings back to the DB.
golfer/golfer.go:157
↓ 3 callers
Method
Scan
(v any)
golfer/golfer.go:178
↓ 3 callers
Function
asNode
(val int)
hole/reverse-polish-notation.go:16
↓ 3 callers
Function
awardCheevos
(db *sqlx.DB, earnedUsers map[int]time.Time, cheevoID string)
github/github.go:69
↓ 3 callers
Function
banners
(golfer *golfer.Golfer)
routes/banner.go:19
↓ 3 callers
Function
checkShowAddRow
()
assets/js/hole/tabs.tsx:589
↓ 3 callers
Function
col
(width: number)
assets/js/_diff.tsx:174
↓ 3 callers
Function
ctrlEnter
(func: Function)
assets/js/_hole-common.tsx:871
↓ 3 callers
Function
defaultMatchPriority
(haystack: string, needle: string)
assets/js/_search-nav.ts:15
↓ 3 callers
Function
expand
(node *Node)
hole/reverse-polish-notation.go:18
↓ 3 callers
Function
flipReversiBoard
(board ReversiBoard, bottomLeft, bottomRight bool)
hole/reversi.go:106
↓ 3 callers
Function
formatScore
(scoring: any)
assets/js/hole/classic.tsx:26
↓ 3 callers
Function
formatScore
(scoring: any)
assets/js/hole/tabs.tsx:160
↓ 3 callers
Function
gcd
(a, b int)
hole/0hole.go:155
↓ 3 callers
Method
get4
(i, j, dir int)
hole/qr.go:32
↓ 3 callers
Function
getCurrentSolutionCode
()
assets/js/_hole-common.tsx:183
↓ 3 callers
Function
getDiffRow
(hole: string, change1: Diff.Change, change2: Diff.Change, pos: DiffPos, argv: string[], ignoreCase: boolean,
assets/js/_diff.tsx:299
↓ 3 callers
Function
getReversiInitialState
()
hole/reversi.go:98
↓ 3 callers
Function
getScoring
(str: string, index: 0 | 1)
assets/js/_hole-common.tsx:172
↓ 3 callers
Function
inRange
(x, y int)
hole/reversi.go:29
↓ 3 callers
Function
isHandValid
(tileCounts map[rune]int)
hole/mahjong.go:166
↓ 3 callers
Function
printNumbrix
(puzzle [boardSize][boardSize]int)
hole/numbrix.go:230
↓ 3 callers
Function
processResults
(results: SearchNavResultInternal[])
assets/js/_search-nav.ts:112
↓ 3 callers
Function
randomBFCase
(jumpSize, buckets, initialBucketSize, bucketSizeChange, charShift int)
hole/brainfuck.go:34
↓ 3 callers
Function
randomPrime
(max int)
hole/jacobi-symbol.go:24
↓ 3 callers
Function
redir
(w http.ResponseWriter, r *http.Request, old, new string, code int)
middleware/redir_holes_langs.go:38
↓ 3 callers
Function
reduce
(n, d int)
hole/quadratic-formula.go:14
↓ 3 callers
Function
renderResults
()
assets/js/base.tsx:125
↓ 3 callers
Function
scanIDs
Very crude pg array parsing, only one-dimensional arrays. See https://github.com/lib/pq/blob/master/array.go for proper parsing.
config/sql.go:47
↓ 3 callers
Function
setCodeForLangAndSolution
(editor: any)
assets/js/_hole-common.tsx:742
↓ 3 callers
Function
setState
(code: string, editor: EditorView)
assets/js/_hole-common.tsx:196
↓ 3 callers
Function
setTall
(b: boolean)
assets/js/hole/tabs.tsx:550
↓ 3 callers
Function
setWide
(b: boolean)
assets/js/hole/tabs.tsx:545
↓ 3 callers
Function
solve
(a, b, c int)
hole/quadratic-formula.go:39
↓ 3 callers
Function
updateReadonlyPanels
(data: ReadonlyPanelsData | {langWiki: string}| {holeLangNotes: string})
assets/js/hole/tabs.tsx:112
↓ 3 callers
Function
updateRestoreLinkVisibility
(editor: any)
assets/js/_hole-common.tsx:729
↓ 2 callers
Method
Fresh
Fresh lang is one that was released in the last 1,000 hours (~42 days).
config/langs.go:55
↓ 2 callers
Function
HTML2Text
HTML2Text converts HTML into plain text. All whitespace collapses to space.
pretty/pretty.go:52
↓ 2 callers
Function
List
()
zone/zone.go:81
↓ 2 callers
Function
Ordinal
Ordinal returns the ordinal of an integer.
pretty/pretty.go:90
↓ 2 callers
Function
Parse
(s string)
uuid/uuid.go:13
↓ 2 callers
Function
Play
Play a given hole, in a given lang, with given code and return the runs.
hole/play.go:66
↓ 2 callers
Method
PrepareNamed
(string)
db/db.go:42
↓ 2 callers
Method
Push
(x any)
hole/huffman.go:46
↓ 2 callers
Method
QueryRowContext
(context.Context, string, ...any)
db/db.go:47
↓ 2 callers
Function
Router
(db *sqlx.DB)
routes/routes.go:11
↓ 2 callers
Function
Run
(db *sqlx.DB, hourly bool)
github/github.go:34
↓ 2 callers
Method
SelectContext
(context.Context, any, string, ...any)
db/db.go:49
↓ 2 callers
Method
String
()
zone/zone.go:76
↓ 2 callers
Method
UnmarshalText
(b []byte)
uuid/uuid.go:33
↓ 2 callers
Method
Value
()
uuid/uuid.go:58
↓ 2 callers
Function
Walk
(JsonNode node)
langs/f-sharp/trimmer.cs:32
↓ 2 callers
Function
applyViewState
(viewState: ViewState)
assets/js/hole/tabs.tsx:480
↓ 2 callers
Function
arabicToRoman
(reverse bool)
hole/arabic-to-roman.go:16
↓ 2 callers
Function
asString
(src any)
config/sql.go:30
↓ 2 callers
Function
awardRoles
(db *sqlx.DB, members map[string]any, roleID, sql string)
discord/bot.go:283
↓ 2 callers
Function
badgeTextWidth
(s string)
routes/badge.go:167
↓ 2 callers
Function
boxGen
generator of random non-null boxes (i.e. with area != 0)
hole/intersection.go:46
↓ 2 callers
Function
calculateIntersection
(b1, b2 bbox)
hole/intersection.go:24
↓ 2 callers
Function
channel
(hole *config.Hole, lang *config.Lang)
discord/bot.go:100
↓ 2 callers
Function
chess960
(reverse bool)
hole/chess960.go:12
↓ 2 callers
Function
continuedFractionsTest
(n, d int)
hole/continued-fractions.go:28
↓ 2 callers
Function
deepCancelTouchStart
* Golden Layout has handlers for both "touchstart" and "click," which is a * problem because a touch on mobile triggers both events (example symptom:
assets/js/hole/tabs.tsx:704
↓ 2 callers
Function
diffWrapper
(join: string, left: string[], right: string[], diffOpts: Diff.BaseOptions)
assets/js/_diff.tsx:89
↓ 2 callers
Function
draw
(grid [height][width]int, si, sj, ei, ej int, path [height][width]int, drawpath bool)
hole/maze.go:79
↓ 2 callers
Function
drawRect
(rect [rectSize][rectSize]byte)
hole/rectangle-fill.go:57
↓ 2 callers
Function
drawReversiBoard
(board ReversiBoard)
hole/reversi.go:160
↓ 2 callers
Function
genRandomPair
()
hole/mahjong.go:68
↓ 2 callers
Function
genValidHand
()
hole/mahjong.go:121
↓ 2 callers
Method
get2
(i, j int)
hole/qr.go:28
↓ 2 callers
Function
getClosestMultiset
(anyAnswer, stdout, multisetItemDelimiter string, caseFold bool)
hole/judges.go:96
↓ 2 callers
Function
getDiffLines
(hole: string, left: Diff.Change, right: Diff.Change, pos: DiffPos, argv: string[], ignoreCase: boolean, isArg
assets/js/_diff.tsx:307
↓ 2 callers
Function
getDisplayPointsChange
(points: number, delta: number)
assets/js/_hole-common.tsx:408
↓ 2 callers
Function
getDisplayRank
(rank: number)
assets/js/_hole-common.tsx:402
↓ 2 callers
Function
getDisplayRankChange
(rank: number, delta: number)
assets/js/_hole-common.tsx:405
↓ 2 callers
Function
getHomeCards
Get homepage cards with order based on homepage settings.
routes/home_cards.go:54
↓ 2 callers
Function
getLastSubmittedCode
()
assets/js/_hole-common.tsx:545
↓ 2 callers
Function
getOtherScoring
(value: 0 | 1)
assets/js/_hole-common.tsx:168
↓ 2 callers
Function
getPotentialSpots
(team ReversiTile, grid ReversiBoard)
hole/reversi.go:38
↓ 2 callers
Function
getScorings
(tr: any, editor: any)
assets/js/_hole-common.tsx:835
↓ 2 callers
Function
getTileNumber
Gets the numerical value of a tile
hole/mahjong.go:9
↓ 2 callers
Function
grayCode
(reverse bool)
hole/gray-code.go:8
↓ 2 callers
Function
groupsCheevos
()
config/nav.go:190
↓ 2 callers
Function
highlightCodeBlocks
(selector: string)
assets/js/_wiki.ts:5
↓ 2 callers
Function
init
(_tabLayout: boolean, setSolution: any, setCodeForLangAndSolution: any, updateReadonlyPanels: any, getEditor:
assets/js/_hole-common.tsx:58
↓ 2 callers
Function
initCopyButtons
(buttons: NodeListOf<HTMLElement>)
assets/js/_hole-common.tsx:119
↓ 2 callers
Function
initDeleteBtn
(deleteBtn: HTMLElement | undefined)
assets/js/_hole-common.tsx:110
↓ 2 callers
Method
isIrreducible
If numerator and denominator are divisible by a number greater than 1 then the fraction is reducible.
hole/fractions.go:12
↓ 2 callers
Function
isLeap
(year int)
hole/calendar.go:30
↓ 2 callers
Function
linesDiff
(hole: string, exp: string, out: string, argv: string[], ignoreCase: boolean)
assets/js/_diff.tsx:49
↓ 2 callers
Function
makeCode
Create a string containing the given number of characters and UTF-8 encoded bytes.
utils/update_sql_from_api.go:29
↓ 2 callers
Function
makeSingular
(strokes: number, units: string)
assets/js/_hole-common.tsx:399
↓ 2 callers
Function
messageEmbedAuthor
(golfer *Golfer.Golfer)
discord/bot.go:463
↓ 2 callers
Function
morse
(reverse bool)
hole/morse.go:48
↓ 2 callers
Function
multiTapConvert
(text string)
hole/multitap-input.go:65
↓ 2 callers
Function
normalize
(str: string)
assets/js/_search-nav.ts:16
↓ 2 callers
Function
oneOfPerOutputJudge
Creates a judge which checks whether each user output corresponds to one of preset outputs corresponding to the respective arg.
hole/judges.go:58
↓ 2 callers
Function
ord
(i: number)
assets/js/_util.ts:2
↓ 2 callers
Function
otherTeam
(team ReversiTile)
hole/reversi.go:19
↓ 2 callers
Function
pAdicTest
(p, n, d int)
hole/p-adic-expansion.go:14
← previous
next →
101–200 of 650, ranked by callers