Skip to content

Instantly share code, notes, and snippets.

View deeptir18's full-sized avatar

Deepti Raghavan deeptir18

View GitHub Profile
@deeptir18
deeptir18 / keybase.md
Last active September 21, 2019 17:31

Keybase Proof

I hereby claim:

  • I am deeptir18 on github.
  • I am deeptir18 (https://keybase.io/deeptir18) on keybase.
  • I have a public key ASArK8CbPk_r2ycRfrvIc2O9YyYHBCKpmJBGTrCNWX2DQgo

To claim this, I am signing this object:

(def
(Report
(volatile acked 0)
(volatile sacked 0)
(volatile loss 0)
(volatile timeout false)
(volatile rtt 0)
(volatile inflight 0)
(minrtt +infinity)
(rttSampleCount 0)
#include <stdio.h>
#include <stdint.h>
#define u32 uint32_t
// raw difference wrap around from left -> right
// on a number line, if I can go in one direction (towards positive), how many steps from left -> right
uint32_t dif32(uint32_t left, uint32_t right) {
uint32_t max32 = ((uint32_t )~0U);
if ( right > left ) {
return (right-left);
c_maj = Key(60, major)
x = ChordPredictor(kSomewhere, 480, c_maj)
chords = x.get_one_option()
voicings = []
for i in range(len(chords)):
chord = chords[i]
if i == 0:
v = VoicePredictor(chord, c_maj)
voicings.append(v.get_initial_voicing())