Skip to content

Instantly share code, notes, and snippets.

View mikbuch's full-sized avatar
🔋
Positive energy!

Mikolaj Buchwald mikbuch

🔋
Positive energy!
View GitHub Profile
#include <stdio.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_multifit.h>
/* Interest rate */
double r[] = { 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25,
2.25, 2.25, 2,2, 2, 1.75, 1.75, 1.75, 1.75,
1.75, 1.75, 1.75, 1.75, 1.75, 1.75, 1.75 };
/* Unemployment rate */
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABgQCWBAymwch4aS2YqktsuyP+O9zxa+BX1LE5S3OcDDqi0K1v/Rt7w9goKXGFUoB5qyt6LfCtq7GnXqIIHSH7XGqQOALQ89awR2saJVe0TGl19mbyyf0PQJzjLNSiBNypceeSqdMEyitUREeZ4ObhQlxqwL2hSvoWW+EaDpeA1XPm2uSJGmnZW1sCdxDOI4EQGXRbLER/3Y6+fc4r+1sjZ+z9Hq7Q1hcX5MNKi6FpqTrwj+bUhjD9iyzM45emTsDWTbmpCRTa5fJFw+09l6xUPKS6efY6tkvP5++5nHN+fV9bJS0XWvFNfwpmASglyv1NxJAovAPwoM7tTgr81cdxwGaEo0s7mK4yIVQCP7hrdr2V7gYBRI/RW9GwHxVMga5G7gZ7BdymdB6qUmpxy30FKboAG1lvsH9kz5tb/ORwX82x58tPWRJQf6+ouq1Bk/YjHOOHMrYcMeInEkmuyHd8BXFjnwD924jc74ceP9QDAsOJb77lnn1XqWw6yHQYFmx5ieM=
acladmin@amu
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikbuch
mikbuch / mbuch.pub
Last active May 6, 2021 14:47
My public SSH key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC5n/GGYIEgnBS1mtpDuaTpx5+X9iGm0EuEsW35MDmwPuFtLvr5Y3a0MAGmcwqG0+6+bKoRh671c8xPnlGQnc2YzpyOmIuVQrC8ZOHSXXn0S4rdfLpa+Zt9OT4R6fDeIT73voqIYkKSiCRsjMHpMbB2spDXNE+Wx3EyOZO2U62ANLxvbZhNyqpsav2u3Na0w6r0GQGXuLLIywLgz/uaamF2kVeBGZftQjuzsdoHR+Tn5//QAy04/7kZIh8tuAwJsg1K57HRNMyOx/I9S+Q+C6q5vvA616hFCLuNl3/uhYZVKU9CX2QiK8NH3/ZYpLlXnMaGg4wiUS1OlUvTUPMQ9YGlGKauLd5B/Ev7gJoWkx9+s2DLMpwSQu626lDodIggmejdxFsbyhV1ynqiCPVlHhgPwlSK/f1y+PHubmSaUj8jXhIvFPyP1tGSvYfMerPxNSq2Lx0V3IvbN3ot11GJ1G4kY1TH1Lbdja/SpngnWVfgf7MPKQEPIkF/qea0P7/jU/s= mbuch
@mikbuch
mikbuch / OpenCV video capture example.ipynb
Last active January 4, 2022 10:10
Materials for my answer the StackOverflow question: https://stackoverflow.com/q/70445787/8877692. A direct link to my answer: https://stackoverflow.com/a/70446399/8877692.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikbuch
mikbuch / package-konva-drawing-labels.json
Created March 10, 2022 19:34
Changing package versions in one of the KonvaJS examples
{
"name": "image-annotation-tool-react-and-konva",
"version": "1.0.0",
"description": "",
"keywords": [],
"main": "src/index.js",
"dependencies": {
"array-move": "2.1.0",
"konva": "8.3.3",
"react": "17.0.2",
We can't make this file beautiful and searchable because it's too large.
Date,p1,p2
15-03-2022 12:05:43:306,0.14131136488609852,0.07
15-03-2022 12:05:43:583,0.16526122841817809,0.061644140029689765
15-03-2022 12:05:43:849,0.16351145872903528,0.0316227766016838
15-03-2022 12:05:44:73,0.18448780026970912,0.04123105625617661
15-03-2022 12:05:44:302,0.17121634989601475,0.0316227766016838
15-03-2022 12:05:44:526,0.17072379616683558,0.022360679774997897
15-03-2022 12:05:44:741,0.17848551330331136,0.03741657386773942
15-03-2022 12:05:44:952,0.1817187933406399,0.014142135623730952
15-03-2022 12:05:45:163,0.15725449267518182,0.0458257569495584
<!-- ChartJS plugin datasrouce example
chartjs-plugin-datasource: https://nagix.github.io/chartjs-plugin-datasource/
Samples: https://nagix.github.io/chartjs-plugin-datasource/samples/
Specific example: https://nagix.github.io/chartjs-plugin-datasource/samples/csv-index.html
Data source: https://gist.githubusercontent.com/mikbuch/32862308f4f5cac8141ad3ae49e0920c/raw/b2b256d69a52dd202668fe0343ded98371a35b15/sample-index.csv -->
<head>
@mikbuch
mikbuch / LEDControlServer.ino
Last active July 30, 2022 11:30
ESP8266 microchip is used to host a web server. This way we can control ESP's LED diode by turning it on or off with a web request, e.g., "http://192.168.0.16/switch".
// This script is avilable as gist:
// https://gist.github.com/mikbuch/212cfb7365703caf517aa83642d10d91
/* Requirements:
* * "esp8266" board installed.
*
* In order to install the board, go to:
* -- Tools => Board => Boards Manager => Install "esp8266"
* It also includes "Wemos" boards ("LOLIN").
*