This file contains 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 <stdlib.h> | |
#include <time.h> | |
//https://www.programmingsimplified.com/c-program-generate-random-numbers | |
int main(){ | |
int numbers = 9001; // number of numbers to print | |
printf("Printing %d numbers!", numbers); | |
This file contains 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> | |
int main(){ | |
int i; // iterator | |
// initial chorus | |
for(i = 0; i < 19; i++){ | |
printf("Du"); | |
if(i % 3 == 1 || i % 3 == 2 || i > 12){ | |
printf(" hast"); |
This file contains 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> | |
int main(){ | |
char ch; | |
printf("Enter a character: "); | |
ch = getchar(); | |
printf("Pointless line here, delete it! (dd)"); | |
printf("Your character is: "); |
This file contains 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 obsDict2List(oldObs): | |
newObs = [] | |
for l1 in oldObs['v_tgt_field']: | |
for l2 in l1: | |
newObs.extend(l2) | |
newObs.append(oldObs['pelvis']['height']) | |
newObs.append(oldObs['pelvis']['pitch']) | |
newObs.append(oldObs['pelvis']['roll']) | |
newObs.extend(oldObs['pelvis']['vel']) |