Skip to content

Instantly share code, notes, and snippets.

View esthicodes's full-sized avatar
🎹
Rachmaninoff: Piano Concerto No.2 Op.18

hona esthicodes

🎹
Rachmaninoff: Piano Concerto No.2 Op.18
View GitHub Profile
#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;
@esthicodes
esthicodes / hello.c
Created July 23, 2021 11:37
hello.c
#include <stdio.h>
int main(void) {
printf("hello, world\n");
}
@esthicodes
esthicodes / 3dvision_sound_source.c
Created August 3, 2021 08:04
Arduino that would generate sound when the two pointing data is close to each other.
#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;
@esthicodes
esthicodes / HomeIoT.c
Created August 3, 2021 08:09
arduino
#define pinLED1 D4
#define pinLED2 D7
void setup()
{
pinMode(pinLED1, OUTPUT);
pinMode(pinLED2, OUTPUT);
}
void loop()
SELECT * FROM Apartments where (Price > ( SELECT AVG(PRICE) FROM Apartments)) AND (STATUS = 'Not rented') ORDER BY PRICE;
#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
#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;
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<assert.h>
#include<limits.h>
#include<stdbool.h>
int main ()
{
#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;
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main()
{