Skip to content

Instantly share code, notes, and snippets.

View mrandri19's full-sized avatar
🅱️
All about that Bayes

Andrea Cognolato mrandri19

🅱️
All about that Bayes
View GitHub Profile
@mrandri19
mrandri19 / file.m
Created May 16, 2018 20:51
Esercitazione 0 Es 8
clearvars;
x = 1;
y = exp(x);
tol = 1e-10;
deg = 0;
[h, member] = tay(x,deg);
error = [];
I (2617) Pinger: Initializing SNTP
I (2617) Pinger: Waiting for system time to be set... (1/10)
I (4627) Pinger: System time was set
I (4627) Pinger: Start pinging
pf->send_count: 1
pf->send_count: 2
pf->send_count: 3
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "lwip/sys.h"
I (4863) Pinger: Start pinging
pf->send_count: 1
pf->send_count: 2
pf->send_count: 3
pf->send_count: 4
import fetch from "node-fetch"
export interface PingData {
total_rows: number
offset: number
rows: Row[]
}
type packageid = string
export interface Row {
#include "rapidjson/document.h"
#include <stack>
#include <unordered_set>
#include <vector>
using namespace rapidjson;
using namespace std;
#define PATH "/home/andrea/Desktop/dependencies.json"
@mrandri19
mrandri19 / main.c
Last active July 3, 2022 19:30
main.c: Modern text rendering with Linux: Part 1
#include <stdio.h>
#include <freetype2/ft2build.h>
#include FT_FREETYPE_H
int main() {
FT_Library ft;
FT_Error err = FT_Init_FreeType(&ft);
if (err != 0) {
printf("Failed to initialize FreeType\n");
@mrandri19
mrandri19 / main.c
Created August 20, 2019 14:23
main.c: Modern text rendering with Linux: Antialiasing
#include <stdio.h>
#include <freetype2/ft2build.h>
#include FT_FREETYPE_H
#include FT_LCD_FILTER_H
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "./stb_image_write.h"
int main() {
@mrandri19
mrandri19 / fourier.html
Created January 23, 2020 22:10
Experiments with the Discrete Fourier Transform
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DFT</title>
<style>
h1 {
font-family: sans-serif;
}
#canvas_container {
@mrandri19
mrandri19 / Julia_Plots_Cheatsheet.md
Last active September 20, 2020 20:46
Julia Plots Cheatsheet

Make multiple plots

plot(
  plot(),
  plot(),
  ...
)