Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
💭
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

💭
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
struct Date
{
unsigned int day;
unsigned int month;
#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
struct Date
{
unsigned int day;
unsigned int month;
#include <stdio.h>
#include <stdlib.h>
struct Date
{
unsigned int day;
unsigned int month;
unsigned int year;
unsigned int status;
};
@giljr
giljr / Linear_regression_01.csv
Last active September 4, 2020 23:56
Linear_regression_01.csv
Index (x) Dataset (y) Error Square Error (SE)
1 34 -5 25
2 35 -1 1
3 39 2 4
4 42 3 9
5 43 7 49
6 47 0 0
Average 40 88
/* LEDC (LED Controller) fade example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/ledc.h"
@giljr
giljr / py_ex_10.csv
Created August 6, 2020 20:33
Python For Engenniging Exercises!
Month energy Consumption(Kwh)
jan 134
feb 126
mar 141
apr 145
may 139
nun 142
Month App Download
jan 127000
feb 133000
mar 129000
apr 134000
may 136000
# # Python mqtt_sub_temp.py
# This program access Mysql inside PhpMyAdmin Application on my Raspberry PI
# It subscribe (as admin) to a Topic 'temp' the value 25 ° C
# Please create a User named user1, password 321 in your Pi
import paho.mqtt.client as mqtt
import requests
import sys
import mysql.connector
from datetime import date, datetime, timedelta
import time