Skip to content

Instantly share code, notes, and snippets.

View mbojan's full-sized avatar

Michał Bojanowski mbojan

View GitHub Profile
@pbiecek
pbiecek / wybory2025.R
Last active June 8, 2025 19:48
wybory2025.R
library("readr")
library("dplyr")
library("ggplot")
library("plotly")
## Rozpakuj pliki z
# "https://wybory.gov.pl/prezydent2025/data/csv/protokoly_po_obwodach_csv.1748955031.zip"
# "https://wybory.gov.pl/prezydent2025/data/csv/protokoly_po_obwodach_w_drugiej_turze_csv.1748955031.zip"
# więcej: https://wybory.gov.pl/prezydent2025/pl/dane_w_arkuszach
@BERENZ
BERENZ / pkw-onet.R
Last active October 14, 2019 12:51
Krotka analiza na podstawie artykułu z Onetu
## źródło: https://wiadomosci.onet.pl/kraj/sprawdzamy-przedwyborcze-sondaze-ktore-badanie-przewidzialo-wynik-wyborow/4x4qpve
### pakiety
library(tidyverse)
library(rvest)
### sciagamy dane
read_html("https://wiadomosci.onet.pl/kraj/sprawdzamy-przedwyborcze-sondaze-ktore-badanie-przewidzialo-wynik-wyborow/4x4qpve") %>%
html_table(header = TRUE, dec = ",") %>%
.[[1]] %>%
@rueycheng
rueycheng / GNU-Make.md
Last active October 25, 2025 15:47
GNU Make cheatsheet

There's a more compelling illustration here: https://github.com/mdsumner/dputtruncat/blob/master/README.md

roms_names <- c("xi_rho", "eta_rho", "s_rho", "ocean_time", "s_w", "xi_u", 
                "eta_u", "xi_v", "eta_v", "tracer", "boundary", "xi_psi", "eta_psi")
axes_summary <- structure(c(1443L, 392L, 31L, 31L, 32L, 1442L, 392L, 1443L, 391L, 
                            2L, 4L, 1442L, 391L), .Names = roms_names)

dput(axes_summary)
@mariotacke
mariotacke / README.md
Last active October 9, 2025 17:59
Spotify AutoHotkey Script

Spotify AutoHotkey Script

This script makes use of the Numpad to control media players and volume on your system.

Usage

  • Install AutoHotkey
  • Right-click .ahk script
  • Compile Script
  • Start executable

Hotkeys

@rmflight
rmflight / post-commit
Last active March 29, 2024 19:43
useful commit hooks for R package dev
#!/path/2/Rscript
# License: CC0 (just be nice and point others to where you got this)
# Author: Robert M Flight <[email protected]>, github.com/rmflight
#
# This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION
# and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have
# good reasons for not doing it on the pre-commit.
#
# To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 11, 2025 14:31
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname