Skip to content

Instantly share code, notes, and snippets.

@BuW-Martin
BuW-Martin / PolynomialRegression.h
Created August 16, 2022 08:31 — forked from chrisengelsma/PolynomialRegression.h
Polynomial Regression (Quadratic Fit) in C++
#ifndef _POLYNOMIAL_REGRESSION_H
#define _POLYNOMIAL_REGRESSION_H __POLYNOMIAL_REGRESSION_H
/**
* PURPOSE:
*
* Polynomial Regression aims to fit a non-linear relationship to a set of
* points. It approximates this by solving a series of linear equations using
* a least-squares approach.
*
* We can model the expected value y as an nth degree polynomial, yielding
@BuW-Martin
BuW-Martin / m34.py
Created September 7, 2021 07:34 — forked from fnordomat/m34.py
Automatic negotiation of a captive portal: connect to m3connect ("conn4.com" variant) wifi in some Accor group hotels without having to jump through hoops.
#!/usr/bin/env python3
import subprocess
import re
import lxml
from lxml import html
import urllib
import urllib.request
import urllib3
import base64
@BuW-Martin
BuW-Martin / m3connect.sh
Created September 7, 2021 07:34 — forked from fnordomat/m3connect.sh
Automatic negotiation of a captive portal: connect to m3connect wifi in some Accor group hotels without having to jump through hoops.
#!/bin/bash
# Accor group hotels offer "free wifi" (ESSID: "m3connect") service
# with internet access (with paid options for higher transfer rates).
#
# This takes care of the m3connect captive portal.
#
# Please drop me a note if it stops working, is insecure etc.
#