Skip to content

Instantly share code, notes, and snippets.

View monstaro's full-sized avatar
🤠

Cody Smith monstaro

🤠
View GitHub Profile
@monstaro
monstaro / analytics_ranking.js
Created May 11, 2022 16:58
Analytics Ranking
{"score": "decay_gauss(time)*log(analytics_clicks+0.5*analytics_likes)"}
@monstaro
monstaro / promoted_ranking_2.js
Created May 11, 2022 16:57
Promoted Activities Ranking (Approach 2)
{"score": "decay_gauss(time)*promoted", "defaults":{"promoted":1}}
@monstaro
monstaro / promoted_ranking_1.js
Created May 11, 2022 16:57
Promoted Activities Ranking (Approach 1)
{"score": "decay_gauss(time)^(1/promoted)", "defaults":{"promoted:1"}}
@monstaro
monstaro / upcoming_event_ranking.js
Created May 11, 2022 16:55
Rank events that are about to start
{"functions":{"indicator_right":{"base":"decay_gauss","scale":"1s","direction":"left"},"score":"decay_gauss(time)*indicator_right(time)"}}
@monstaro
monstaro / pinned_ranking.js
Created May 11, 2022 16:53
Pinned Ranking
{"score": "decay_linear(time) +is_pinned","defaults": {"is_pinned": 0}}
@monstaro
monstaro / popularity_ranking.js
Created May 11, 2022 16:52
Ranking by Popularity
{"score": "decay_gauss(time)*log(likes+0.5*comments+1)"}
@monstaro
monstaro / basic_ranking.js
Created May 11, 2022 16:51
Basic Ranking
{
"score": "decay_linear(time) * popularity ^ 0.5",
"defaults": {
"popularity": 1
}
}
@monstaro
monstaro / channel-create-example.md
Last active June 4, 2021 16:46
Channel Method Examples
{
  channel: {
    id: 'my-new-channel',
    type: 'messaging',
    cid: 'messaging:my-new-channel',
    last_message_at: '2021-06-04T16:34:23.884405Z',
    created_at: '2021-06-04T16:25:04.510838Z',
    updated_at: '2021-06-04T16:25:04.510838Z',
    created_by: {
@monstaro
monstaro / DTR.md
Last active May 11, 2020 17:12
David Nate Cody DTR

DTR

Schedule:

Basically open all the time, take it day by day. No set cutoff times.

Learning Goals:

Teach other Rails, React, JS etc. Git Workflow Git Rebasing