Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amirgamil/apollo
/ functions
Functions
170 in github.com/amirgamil/apollo
⨍
Functions
170
◇
Types & classes
43
↓ 20 callers
Method
render
(dataIn)
static/js/poseidon.min.js:473
↓ 17 callers
Method
bind
(source, handler)
static/js/poseidon.min.js:386
↓ 15 callers
Method
consume
()
static/js/poseidon.min.js:978
↓ 11 callers
Method
getNextWord
(includeQuotes = false)
static/js/poseidon.min.js:931
↓ 11 callers
Function
html
(templates, ...values)
static/js/poseidon.min.js:1237
↓ 11 callers
Method
update
(object)
static/js/poseidon.min.js:566
↓ 9 callers
Method
skipToNextChar
()
static/js/poseidon.min.js:983
↓ 8 callers
Function
Tokenize
takes in a source of text and converts into an array of stemmed tokens (filtering out stop words and punctuation) This gets called when ingesting new
pkg/apollo/backend/tokenizer.go:72
↓ 8 callers
Method
get
(key)
static/js/poseidon.min.js:576
↓ 7 callers
Function
compareArrays
compare arrays because deepEqual is inconsistent smh
tests/main_test.go:11
↓ 7 callers
Method
skipSpaces
()
static/js/poseidon.min.js:972
↓ 4 callers
Function
addWord
helper function to add word
pkg/apollo/backend/tokenizer.go:14
↓ 4 callers
Method
fire
()
static/js/poseidon.min.js:513
↓ 4 callers
Method
handleInput
(el, evt)
static/js/main.js:409
↓ 4 callers
Method
has
(value)
static/js/poseidon.min.js:733
↓ 4 callers
Method
navigate
(path, {replace = false} = {})
static/js/poseidon.min.js:873
↓ 4 callers
Function
normalize
(vNode)
static/js/poseidon.min.js:147
↓ 4 callers
Function
parseTag
(reader, values)
static/js/poseidon.min.js:1127
↓ 4 callers
Method
peek
()
static/js/poseidon.min.js:920
↓ 3 callers
Function
ensureDataExists
called at the global start
pkg/apollo/backend/api.go:51
↓ 3 callers
Function
getFilesInFolder
(path string, folderName string)
pkg/apollo/sources/utils.go:23
↓ 3 callers
Method
getUntilChar
(char)
static/js/poseidon.min.js:989
↓ 3 callers
Method
match
(route)
static/js/poseidon.min.js:843
↓ 3 callers
Method
on
(...pageRoutes)
static/js/poseidon.min.js:886
↓ 3 callers
Function
parseJSExpr
(reader, values, attribute)
static/js/poseidon.min.js:1076
↓ 3 callers
Method
remove
()
static/js/poseidon.min.js:456
↓ 3 callers
Method
setStore
(data)
static/js/poseidon.min.js:689
↓ 3 callers
Method
showAuthError
()
static/js/main.js:317
↓ 3 callers
Function
writeRecordListToDisk
helper method which writes the current the record list to disk parameters determine which record list we write
pkg/apollo/backend/api.go:122
↓ 2 callers
Function
Analyze
(source string)
pkg/apollo/backend/tokenizer.go:63
↓ 2 callers
Function
GetRecordFromData
(currData schema.Data, uniqueID string)
pkg/apollo/backend/api.go:172
↓ 2 callers
Function
RefreshInvertedIndex
highest-level function that is called at regular intervals to recompute the ENTIRE inverted index to integrate new data added via Apollo, resync data
pkg/apollo/backend/api.go:134
↓ 2 callers
Function
Scrape
(link string)
pkg/apollo/schema/crawler.go:17
↓ 2 callers
Method
add
(newData)
static/js/poseidon.min.js:719
↓ 2 callers
Method
addHandler
(handler)
static/js/poseidon.min.js:530
↓ 2 callers
Function
flushSavedRecordsIntoInvertedIndex
takes all of the saved records and puts them in our inverted index
pkg/apollo/backend/api.go:165
↓ 2 callers
Function
foundClosingTag
(closingTag, reader)
static/js/poseidon.min.js:1061
↓ 2 callers
Function
getRecordFromID
helper method which return a record from the associated id
pkg/apollo/backend/searcher.go:78
↓ 2 callers
Function
getRegexFromRouteString
(route)
static/js/poseidon.min.js:784
↓ 2 callers
Function
instantiate
(vNode)
static/js/poseidon.min.js:75
↓ 2 callers
Function
loadGlobals
()
pkg/apollo/backend/api.go:158
↓ 2 callers
Function
loadRecordsList
(path string, list map[string]schema.Record)
pkg/apollo/backend/api.go:85
↓ 2 callers
Method
setSearchInput
(value)
static/js/main.js:173
↓ 2 callers
Method
skipPastChar
(char)
static/js/poseidon.min.js:1024
↓ 2 callers
Function
updateDOMProperties
(node, prevVNode, nextVNode)
static/js/poseidon.min.js:15
↓ 2 callers
Function
writeTokenFrequenciesToInvertedIndex
write a map of tokens to their counts in our inverted index
pkg/apollo/backend/api.go:210
↓ 1 callers
Function
AddNewEntryToLocalData
(data schema.Data)
pkg/apollo/backend/api.go:222
↓ 1 callers
Function
CollectionStoreOf
(classOf)
static/js/poseidon.min.js:775
↓ 1 callers
Function
GetData
TODO: make sourcesMap a global so we don't keep passing large maps in parameters TODO: should return map[string]schema.Data so we have control over th
pkg/apollo/sources/source.go:11
↓ 1 callers
Function
HandleYouTubeVideo
(link string)
pkg/apollo/schema/crawler.go:33
↓ 1 callers
Function
InitializeFilesAndData
helper function which should be called when the program is initialized so that the necessary files and paths exist in our database
pkg/apollo/backend/api.go:62
↓ 1 callers
Function
ListOf
(itemOf)
static/js/poseidon.min.js:670
↓ 1 callers
Function
Search
TODO: should search titles too (and put high probability mass on those tokens) given a query string a search type (AND / OR ) returns a list of matche
pkg/apollo/backend/searcher.go:18
↓ 1 callers
Function
Start
()
pkg/apollo/server.go:136
↓ 1 callers
Function
addNewBooksToDb
(books []Book)
pkg/apollo/sources/kindle.go:106
↓ 1 callers
Function
addNewEpisodesToDb
(episodes []schema.Data)
pkg/apollo/sources/podcast.go:97
↓ 1 callers
Method
addStyle
(vdom)
static/js/poseidon.min.js:410
↓ 1 callers
Function
check
(e error)
pkg/apollo/server.go:19
↓ 1 callers
Function
checkForNewBooks
()
pkg/apollo/sources/kindle.go:120
↓ 1 callers
Function
checkForNewEpisodes
(rssFeed RSS)
pkg/apollo/sources/podcast.go:108
↓ 1 callers
Function
convertBooksToData
()
pkg/apollo/sources/kindle.go:72
↓ 1 callers
Function
convertToReqFormat
takes a lists of thoughts and converts it into the require data struct we need for the api
pkg/apollo/sources/athena.go:43
↓ 1 callers
Function
countFrequencyTokens
takes a string of tokens and returns a map of each token to its frequency
pkg/apollo/backend/api.go:96
↓ 1 callers
Method
create
(data)
static/js/poseidon.min.js:466
↓ 1 callers
Function
createFile
(path string)
pkg/apollo/backend/api.go:41
↓ 1 callers
Function
css
(templates, ...values)
static/js/poseidon.min.js:1381
↓ 1 callers
Function
debounce
(fn, delay)
static/js/main.js:2
↓ 1 callers
Function
deleteFiles
(path string, folderName string)
pkg/apollo/sources/utils.go:34
↓ 1 callers
Function
ensureFileExists
(path string)
pkg/apollo/sources/utils.go:9
↓ 1 callers
Method
fetch
(query)
static/js/main.js:24
↓ 1 callers
Function
findEpisodeInRSSWithName
(name string, rssFeed RSS)
pkg/apollo/sources/podcast.go:88
↓ 1 callers
Function
flushDataSourcesIntoInvertedIndex
method takes data and flushes it into our inverted index Note since th
pkg/apollo/backend/api.go:201
↓ 1 callers
Function
generateUniqueHash
(string)
static/js/poseidon.min.js:347
↓ 1 callers
Function
getAthena
()
pkg/apollo/sources/athena.go:21
↓ 1 callers
Function
getDataFromList
(listData string, listKey string, index int)
pkg/apollo/sources/zeus.go:65
↓ 1 callers
Function
getKindle
Kindle does not directly provide a way to get highlights except via https://read.amazon.com/ I use a readwise extension to download my highlights into
pkg/apollo/sources/kindle.go:48
↓ 1 callers
Function
getPodcast
follows similar approach to Kindle, podcast folder - put new txt files there
pkg/apollo/sources/podcast.go:40
↓ 1 callers
Method
getQueryParameters
(queryParameters, routeParams)
static/js/poseidon.min.js:833
↓ 1 callers
Function
getSurroundingText
helper method to get small window of matching result don't send the full text back to the client cause this is too slow
pkg/apollo/backend/searcher.go:138
↓ 1 callers
Method
getTagArrayFromString
(tagString)
static/js/main.js:365
↓ 1 callers
Method
getUntilWord
(word)
static/js/poseidon.min.js:999
↓ 1 callers
Function
getZeus
()
pkg/apollo/sources/zeus.go:23
↓ 1 callers
Function
highlightContent
(text, query)
static/js/main.js:17
↓ 1 callers
Function
idf
idf = log(total number of documents / number of documents that contain term) - ensures tokens which are rarer get a higher score
pkg/apollo/backend/searcher.go:87
↓ 1 callers
Method
init
()
static/js/main.js:484
↓ 1 callers
Function
initConstants
load the sets for the first time to prevent repeated work
pkg/apollo/backend/tokenizer.go:97
↓ 1 callers
Method
initList
(item, store, remove)
static/js/poseidon.min.js:598
↓ 1 callers
Function
initStyleSheet
(userJSONStyles, name, rules)
static/js/poseidon.min.js:335
↓ 1 callers
Function
injectStyles
(rules)
static/js/poseidon.min.js:356
↓ 1 callers
Function
isValidPassword
(password string)
pkg/apollo/server.go:129
↓ 1 callers
Method
itemsChanged
()
static/js/poseidon.min.js:619
↓ 1 callers
Function
loadAthenaData
()
pkg/apollo/sources/athena.go:32
↓ 1 callers
Function
loadInvertedIndex
loads the inverted path from disk to memory opt to use a more optimized JSON decoding and encoding library than Go's native one as our inverted index
pkg/apollo/backend/api.go:74
↓ 1 callers
Function
loadKindle
()
pkg/apollo/sources/kindle.go:112
↓ 1 callers
Method
loadPreview
()
static/js/main.js:70
↓ 1 callers
Method
loadSearchResults
(evt)
static/js/main.js:158
↓ 1 callers
Function
parseCSSJSON
(JSONCSS, containerHash, styleRules, specialTag = false)
static/js/poseidon.min.js:286
↓ 1 callers
Function
parseCSStringToDict
(reader, dict, selector, values)
static/js/poseidon.min.js:1254
↓ 1 callers
Function
parseChildren
(closingTag, reader, values)
static/js/poseidon.min.js:1033
↓ 1 callers
Function
performWork
()
static/js/poseidon.min.js:107
next →
1–100 of 170, ranked by callers