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 <Arduino.h> | |
#include <SoftwareSerial.h> | |
#include <DFRobotDFPlayerMini.h> | |
SoftwareSerial Vicon_BTSerial(2,3); | |
SoftwareSerial Master_BTSerial(4,9); | |
SoftwareSerial MP3Module(7, 6); | |
DFRobotDFPlayerMini MP3Player; |
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> | |
int main(void) { | |
printf("hello, world\n"); | |
} |
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 <SoftwareSerial.h> | |
#include <DFRobotDFPlayerMini.h> | |
SoftwareSerial Vicon_BTSerial(2,3); | |
SoftwareSerial Master_BTSerial(4,9); | |
SoftwareSerial MP3Module(7, 6); | |
DFRobotDFPlayerMini MP3Player; | |
int speakerButton = 12; |
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
#define pinLED1 D4 | |
#define pinLED2 D7 | |
void setup() | |
{ | |
pinMode(pinLED1, OUTPUT); | |
pinMode(pinLED2, OUTPUT); | |
} | |
void loop() |
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
SELECT * FROM Apartments where (Price > ( SELECT AVG(PRICE) FROM Apartments)) AND (STATUS = 'Not rented') ORDER BY PRICE; |
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 <cs50.h> | |
/** | |
* Sorts array in place using bubble sort - optimizes to end if there are | |
* no swaps | |
*/ | |
void bubble_sort(int array[], int n) | |
{ | |
// cycle through array |
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 <stdlib.h> | |
#include<string.h> | |
#include<stdio.h> | |
int main() { | |
int hh, mm, ss; | |
char t12[3]; | |
scanf("%d:%d:%d%s", &hh, &mm, &ss, t12); | |
if(strcmp(t12, "PM")==0 && hh != 12) hh +=12; |
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> | |
#include<math.h> | |
#include<stdlib.h> | |
#include<assert.h> | |
#include<limits.h> | |
#include<stdbool.h> | |
int main () | |
{ |
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 <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <limits.h> | |
#include <stdbool.h> | |
int main(){ | |
int n, type, argmax = 0; |
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 <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <limits.h> | |
#include <stdbool.h> | |
int main() | |
{ |
OlderNewer