This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def recTest(n, constant, divisibleBy): | |
| if n <= divisibleBy: | |
| return constant | |
| else: | |
| total = recTest(n/4, constant, divisibleBy) | |
| total = total + recTest(n/4, constant, divisibleBy) | |
| total = total + recTest(n/4, constant, divisibleBy) | |
| total = total + recTest(n/4, constant, divisibleBy) | |
| return total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function total = rectest(n, constant, divisibleBy) | |
| if(n <= divisibleBy) | |
| total = constant; | |
| else | |
| total = recTest(n/4, constant, divisibleBy); | |
| total = total + recTest(n/4, constant, divisibleBy); | |
| total = total + recTest(n/4, constant, divisibleBy); | |
| total = total + recTest(n/4, constant, divisibleBy); | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ECN 110B:20706 | |
| ECN 134:20741 | |
| ECS 152:44031 | |
| ECS 193:21237 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| def calcPlaneNormal(x1, y1, z1, x2, y2, z2, x3, y3, z3): | |
| nx1 = x1 - x2 | |
| ny1 = y1 - y2 | |
| nz1 = z1 - z2 | |
| mag1 = math.sqrt(nx1*nx1 + ny1*ny1 + nz1*nz1) | |
| nx2 = x1 - x3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Going to use: | |
| artist familiarity float algorithmic estimation url | |
| artist hotttnesss float algorithmic estimation url | |
| beats start array float result of beat tracking url | |
| danceability float algorithmic estimation | |
| duration float in seconds | |
| end of fade in float seconds at the beginning of the song url | |
| energy float energy from listener point of view | |
| key int key the song is in url | |
| loudness float overall loudness in dB url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ 111 | |
| E 010 | |
| T 1100 | |
| A 1010 | |
| O 1000 | |
| I 0111 | |
| N 0110 | |
| S 0011 | |
| H 0001 | |
| R 0000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| frequencies = { | |
| ('blank', 0.183), | |
| ('e', 0.102), | |
| ('t', 0.077), | |
| ('a', 0.068), | |
| ('o', 0.059), | |
| ('i', 0.058), | |
| ('n', 0.055), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| double** multiplyMatrices(double** A, int Am, int An, double** B, int Bm, int Bn) { | |
| int i, j, k, l; | |
| double** retAr = create2DDoubleArray(Am, Bn); | |
| if(An != Bm) { | |
| printf("OH FUCK YO\n"); | |
| return NULL; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| // r $(python -c 'print ( ("AA"*16 + "FF"*8 + "7d05400000000000").decode("hex"))') | |
| // gcc stackOverflowTesting.c -fno-stack-protector -g | |
| //buffer || (stack pointer, 8bytes) || (return pointer, 8bytes) | |
| //Address is 8 bytes, 64 bit machine |
OlderNewer