Skip to content

Instantly share code, notes, and snippets.

View oldaccountarchived's full-sized avatar

Eva Jenkins oldaccountarchived

  • Folx Health
  • Queens, NY
View GitHub Profile
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
* thread #1: tid = 0x46ac5, 0x00000001000a1d84 test`Exponential::multiply(this=0x00000001003006e0, val=0x00000001003008d0) + 4404 at Exponential.cpp:418, queue = 'com.apple.main-thread', stop reason = step over
frame #0: 0x00000001000a1d84 test`Exponential::multiply(this=0x00000001003006e0, val=0x00000001003008d0) + 4404 at Exponential.cpp:418
415 else if (typeid(*val) == typeid(Exponential)) {
416 if (values["value"]->toString().compare(val->getValues()["value"]->toString()) == 0) {
417 Number* exponent = values["exponent"]->add(val->getValues()["exponent"]);
-> 418 Number* coefficient = values["coefficient"]->multiply(val->getValues()["coefficient"]);
419 Number* result = new Exponential(values["value"], exponent, coefficient);
420 return result;
421 }
(lldb) p exponent->toString()
.data
A: .word 5, 2, 4, 7, 14, 10, 3, 17, 11, 19 # Array A.
B: .word 15, 16, 8, 1, 6, 12, 13, 9, 20, 18 # Array B.
C: .word 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 # Array C.
D: .word 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0 # Array D.
minA: .word 100 # min of list A.
minB: .word 100 # min of list B.
maxA: .word 0 # max of list A.
maxB: .word 0 # max of list B.
I: .word 0 # Counter I
#include <iostream>
int* packedArrayTournamentTree(int* score_start, int* score_end) {
int score_size = score_end - score_start;
// Check if size is 2^n or 2^n - 1 to satisfy completeness of tree.
bool check = false;
int power_of_two = 1;
while((power_of_two - 1) <= score_size) {

Keybase proof

I hereby claim:

  • I am jacobj on github.
  • I am jacobj (https://keybase.io/jacobj) on keybase.
  • I have a public key whose fingerprint is 0CCC 4636 0573 C42B 56EB 8C0A 2A95 6239 DF1D 952D

To claim this, I am signing this object:

diary on
format compact
type solve2_3b.m
function C = solve2_3b(A)
size_of_A = size(A);
n = size_of_A(1,1);
format long, b = randi(10, n, 1)
x1 = A\b;
x2 = inv(A) * b;
with open('tracks_per_year.txt','r') as in_file:
with open('musicinput.sql','w') as out_file:
for x in in_file:
SQL_in = x.rstrip() #Get rid of those newlines
SQL_out = 'INSERT INTO Music VALUES('
SQL_vals = SQL_in.split('<SEP>')
# Grab vals from split
year = SQL_vals[0]
song_ID = SQL_vals[1]
artist = SQL_vals[2]
INSERT INTO Music VALUES('Alberta Hunter','TRSGHLU128F421DF83','Don''t Pan Me',1922);
INSERT INTO Music VALUES('Barrington Levy','TRMYDFV128F42511FC','Warm And Sunny Day',1922);
INSERT INTO Music VALUES('Barrington Levy','TRRAHXQ128F42511FF','Looking My Love',1922);
INSERT INTO Music VALUES('Barrington Levy','TRFAFTK12903CC77B8','Warm And Sunny Day',1922);
INSERT INTO Music VALUES('Barrington Levy','TRSTBUY128F4251203','Mandela You''re Free',1922);
INSERT INTO Music VALUES('Barrington Levy','TRODGCA128F4251206','Something In My Heart (Full Vocal)',1922);
INSERT INTO Music VALUES('Papa Charlie Jackson','TRLOZBM128F4280BF6','Airy Man Blues',1924);
INSERT INTO Music VALUES('Vernon Dalhart','TRZCBEO128F4285118','Wreck Of The Old 97',1924);
INSERT INTO Music VALUES('Vernon Dalhart','TRTRZWN128F4285110','The Prisoner''s Song',1924);
INSERT INTO Music VALUES('Vernon Dalhart','TRTRKSF12903CFEDD7','Wreck Of The Old 97',1924);
# Check if I'm in tmux plz.
if [ "$TERM" != "eterm-color" ]; then
if [ "$TMUX" = "" ]; then tmux; fi
fi
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/