This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Raceday.watch calendar event exporter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-11-11 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://raceday.watch/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=raceday.watch | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tab_spaces = 2 | |
| edition ="2021" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"label":"MSRV","message":"1.78.0","schemaVersion":1,"color":"32ca55","labelColor":"353d46"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add the below section to `.cargo/config.toml` | |
| [target.'cfg(all())'] | |
| rustflags = [ | |
| # BEGIN - Embark standard lints v6 for Rust 1.55+ | |
| # do not change or add/remove here, but one can add exceptions after this section | |
| # for more info see: <https://github.com/EmbarkStudios/rust-ecosystem/issues/59> | |
| "-Dunsafe_code", | |
| "-Wclippy::all", | |
| "-Wclippy::await_holding_lock", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| netsh wlan show profile [NETWORK NAME] key=clear | findstr "Key Content" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set.seed(1234) | |
| wcss <- vector() | |
| for(i in 1:10) { | |
| wcss[i] = sum(kmeans(X, i)$withinss) | |
| } | |
| plot(1:10, wcss, type = 'b', | |
| main = paste('Clusters of <data>'), | |
| xlab = 'Number of Clusters', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Automatic backward elimination | |
| backwardElimination <- function(x, sl) { | |
| # Number of features | |
| numVars = length(x) | |
| for (i in c(1:numVars)){ | |
| # Train regressor on all (remaining) features | |
| regressor = lm(formula = Profit ~ ., data = x) | |
| # Query all the p-values and extract the largest one | |
| maxVar = max(coef(summary(regressor))[c(2:numVars), "Pr(>|t|)"]) | |
| # If that value is greater than the significance level (SL) then drop the feature |