Skip to content

Instantly share code, notes, and snippets.

View kmdupr33's full-sized avatar

Matt Dupree kmdupr33

View GitHub Profile
fun findLearningParameters(videoGameData: Array<Pair<Double, Double>>): Pair<Double, Double> {
//...
return Pair(m, b)
}
@kmdupr33
kmdupr33 / GradientDescent.kt
Last active September 5, 2019 12:36
gradient descent in kotlin
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import org.junit.Test
import kotlin.math.pow
class Tests {
fun updateGuess(
guess: Pair<Double, Double>,
@kmdupr33
kmdupr33 / config.yaml
Created July 5, 2019 17:39
jira go config w/ custom commands
endpoint: https://jira.myunikey.com
user: mdupree
custom-commands:
- name: remove-attachments
help: removes all attachments from a given issue
args:
- name: ticket
required: true
script: jira attach list {{args.ticket}} | cut -sf 2 -d \| | sed -n '1!p' | sed 's/ //g' | xargs -L 1 -I % jira attach rm %
- name: list-active-untracked-work
Cohorts Week 0 Week 1 Week 2 Week 3
1 1 1 1 1
2 1 1.1 1
Cohorts Visit Return Visit Active Account Active Voter
Jan - - - -
Feb - - - -
Mar - - - -
Apr - - - -
Cohorts Week 0 Week 1 Week 2 Week 3
1 1 1 ??? ???
2 1 1.1 1
Cohorts Week 0 Week 1
1 1 1
2 1 1.1
Cohorts Week 0 Week 1
1 1 1
2 1 1.1
Cohorts Week 0 Week 1
1 1 1
2 1 1.1
Cohorts Week 0 Week 1
1 1 1
2 1 1.1