Skip to content

Instantly share code, notes, and snippets.

View pniedzwiedzinski's full-sized avatar
📆
Liczę matmę

Patryk Niedźwiedziński pniedzwiedzinski

📆
Liczę matmę
View GitHub Profile
@pniedzwiedzinski
pniedzwiedzinski / bootstrap-badge-outline.css
Last active April 12, 2023 11:44
Outline badges in bootstrap
.badge-outline-primary {
color: #007bff;
background-color: transparent;
background-image: none;
border-color: #007bff;
border: 1px solid;
}
.badge-outline-secondary {
color: #6c757d;
@pniedzwiedzinski
pniedzwiedzinski / Makefile
Created January 14, 2019 15:38
Simple C++ project template for resolving algorithmic exercises for fish
install:
mkdir ~/.new | cp Makefile.new ~/.new/Makefile | cp main.cpp ~/.new | cp new.fish ~/.config/fish/functions
#!/bin/bash
set -euo pipefail
if ! [ -d ~/.hosts ]; then
mkdir ~/.hosts
fi
cd ~/.hosts
@pniedzwiedzinski
pniedzwiedzinski / hyperion_switcherd.sh
Last active December 23, 2019 08:22
Turn off hyperion based on TV status
#!/bin/bash
set -u
log="/var/log/hyperion-config-switch.log"
function echo_d() {
echo "[$(date "+%F %T")} $1"
}
function turn_hyperion_off() {
@pniedzwiedzinski
pniedzwiedzinski / .cvimrc
Last active September 10, 2019 20:49
cvimrc
map GH :newtab https://github.com
@pniedzwiedzinski
pniedzwiedzinski / load.cpp
Last active November 10, 2019 19:55
Getting the data
Matrix* loadData(int n, int p) {
Matrix* data = new Matrix(n, p);
for (int i = 0; i < n; i++) {
for (int j = 0; j < p; j++) {
float a;
cin >> a;
data->update(i, j, a);
}
}
return data;
@pniedzwiedzinski
pniedzwiedzinski / GNOME_EXTENSIONS.md
Last active November 15, 2019 18:43
Extensions sync

Sync gnome extensions

@pniedzwiedzinski
pniedzwiedzinski / keybase.md
Created November 22, 2019 07:36
Keybase proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@pniedzwiedzinski
pniedzwiedzinski / file.cpp
Last active February 20, 2020 21:33
writing to file
// Author: Patryk Niedźwiedziński
#include <iostream>
#include <fstream>
using namespace std;
bool writeText(string filename, char* text) {
ofstream file(filename, ios::app); // append
if (!file.is_open()) { // sprawdza czy udało się dostać do pliku
@pniedzwiedzinski
pniedzwiedzinski / Mandalorian Fan Art Wallpaper
Last active November 14, 2020 16:35
List of The Mandalorian wallpapers
https://www.iamag.co/wp-content/uploads/2019/12/Mandalorian-3.jpg
https://www.iamag.co/wp-content/uploads/2019/12/Mandalorian-2.jpg
https://www.iamag.co/wp-content/uploads/2019/12/Mandalorian-1.jpg
https://www.iamag.co/wp-content/uploads/2019/12/Mandalorian-33.jpg
https://www.iamag.co/wp-content/uploads/2019/12/Mandalorian-32.jpg
https://www.iamag.co/wp-content/uploads/2019/12/Mandalorian-31-scaled.jpg
https://www.iamag.co/wp-content/uploads/2019/11/EJxGm89VUAERo8e.jpeg
https://www.iamag.co/wp-content/uploads/2019/11/the-mandalorian-010-scaled.jpg
https://www.iamag.co/wp-content/uploads/2019/11/the-mandalorian-009-scaled.jpg
https://www.iamag.co/wp-content/uploads/2019/11/the-mandalorian-008-scaled.jpg