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 / career-journal.md
Last active May 29, 2020 23:16
Career Journal

1. Self Reflection

-What are your top 3 core values? What are the strengths and talents that you love using? Who do you impact or want to make a difference for? What’s important about this? What kind of role do you see yourself pursuing in your job search?

Three of my core values in my work are communication, clarity, and empathy. I think communication between developers working on a project is key to an efficient, enjoyable workflow and a quality end product. I think one of my strengths as a developer is to pre-plan as much as necessary. Considering beforehand the most efficient ways to pass data between classes, basic class/component structures, and how your UX will be can take a lot of headache out of the actual development process if you brainstorm and whiteboard some of these things first. When working in groups, I have no problem stepping up to the plate if the group seems to need some direction and motivation. This may be for the entirety of a project or may just be for a certain day. I can kee

@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