Skip to content

Instantly share code, notes, and snippets.

View rebeccajae's full-sized avatar
🚀
🐈

rebeccajae rebeccajae

🚀
🐈
View GitHub Profile
@rebeccajae
rebeccajae / keybase.md
Created September 27, 2018 20:01
A thing.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@rebeccajae
rebeccajae / rootPitch.m
Last active March 23, 2018 07:16
Crude thing
function p = rootPitch(key, note)
notes = {'c', 'cs', 'd', 'ef', 'e', 'f', 'fs','g','gs','a','bf', 'b'};
I = find(strcmp(notes, note));
I = I-1;
shift = 12*key;
idx = shift + I;
a = 2^(1/12);
f0 = 16.35;
p = f0*a^idx;
end
@rebeccajae
rebeccajae / kern_print.asm
Last active May 30, 2018 04:19
Simple string printer in x86 ASM.
global start
section .text
bits 32
string_start:
dw 0x2f33, 0x2f32, 0x2f4f, 0x2f4b, 0x0
start:
mov esp, stack_top
@rebeccajae
rebeccajae / lab4a.c
Last active March 1, 2018 20:51
ECE426 Lab4
#include <pthread.h>
#include <stdio.h>
#define NTHREADS 10
void *sum_runner(void *param);
int sum;
int main(int arc, char *argv[])
@rebeccajae
rebeccajae / lab3a.c
Last active February 20, 2018 23:21
ECE 426 Lab 3
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
int n = 8; //35
pid_t pid;
pid = fork();