Skip to content

Instantly share code, notes, and snippets.

github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=
bitbucket.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIazEu89wgQZ4bqs3d63QSMzYVa0MuJ2e2gKTKqu+UUO
bitbucket.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPIQmuzMBuKdWe
:root {
--font: 'Ubuntu' !important;
--monospaced-font: 'Ubuntu Mono' !important;
--sidebar-font-size: 13px !important;
--tabs-font-size: 11px !important;
--breadcrumbs-font-size: 12px !important;
--statusbar-font-size: 11px !important;
--cursor-border-radius: 1px !important;
--background-blur: 10px;
--quick-input-border-radius: 6px !important;
# enable vi-like keybindings
setw -g mode-keys vi
# enable mouse support
set -g mouse on
# default terminal for 256 colors
set -g default-terminal "screen-256color"
# truecolor support
{-# LANGUAGE Rank2Types #-}
newtype Church = Church (forall a. (a -> a) -> (a -> a))
zero' = Church (\f x -> x)
one' = Church (\f x -> f x)
two' = Church (\f x -> f $ f x)
three' = Church (\f x -> f $ f $ f x)
succ' (Church n) = Church (\f -> f . n f)
add' (Church a) (Church b) = Church (\f x -> b f $ a f x)
@psmolak
psmolak / arrays-pointers.md
Last active September 10, 2018 23:36
Arrays and Pointers. What's the difference?

This article is ment to explain the differences between arrays and pointers in C.

If you started to learn C, you might have stumbled upon people saying that "array is
just a pointer to its first element". As somewhat true, it's a huge simplification.
To understand why is that, we have to understand what arrays and pointers really are.

Arrays

Every array type is a pair (type, size), where type is the type of its elements,
and size is the number of these elements. Thus int foo[100] and int bar[200]
are names of two different types: foo is of type int[100] whereas bar is of

@psmolak
psmolak / api-spec.md
Last active February 13, 2024 16:22
OGame API documentation

Statistics API

API url: s{server}-{country}.ogame.gameforge.com/api/{endpoint}

Endpoints

players.xml (1 day)
Contain list of all players on the server along with their names and status.

-- Wymagamy, by moduł zawierał tylko bezpieczne funkcje
{-# LANGUAGE Safe #-}
-- Definiujemy moduł zawierający rozwiązanie.
-- Należy zmienić nazwę modułu na {Imie}{Nazwisko} gdzie za {Imie}
-- i {Nazwisko} należy podstawić odpowiednio swoje imię i nazwisko
-- zaczynające się wielką literą oraz bez znaków diakrytycznych.
module ImieNazwisko (typecheck, eval) where
-- Importujemy moduły z definicją języka oraz typami potrzebnymi w zadaniu
import AST
@psmolak
psmolak / theme.sh
Created September 6, 2016 06:20
Desktop
# FONT: UBUNTU
# MAIN
BG=#353535
FG=#BABABA
# WINDOWS
W_BG=#2D2D2D
W_ACTIVE=#BBBBBB
W_INACTIVE=#4F4F4F
@psmolak
psmolak / 2016-07-29
Last active July 29, 2016 14:12
Archlinux rankmirror mirrorlists
# Server list generated by rankmirrors on 2016-07-29
##
## Arch Linux repository mirrorlist
## Generated on 2016-07-29
##
## Worldwide
## Australia
## Austria
## Belarus
## Belgium
@psmolak
psmolak / psmolak.pub
Created June 28, 2016 14:29
Public SSH
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjLhNnTRmGvHffeTjLGsvM2Gy4dT2DhXlpsPnJtbPtxQHeVRJRJr+VVrU9XjrPStkNRTI1zh0Ji92ZiBPDvwro9vbcTKUCJ1zdqBbZGTlVLD8OgSmpHzRHFmldnKus8DIctYb8S2+t/zCzUaX/8H3F/G/R2nqutlH/0cwQkz5G3Lvzq/SvXyqqDJA90IfPfM0Ub8XcAg6w7Ie2gvtn1XT27V5Yr1y5YliroWPoR1slwj0Pouum1g9brHpYtGcKrZDppxKjDA5317mZ+V5oJH2Q/CbGV/ayR7DZddccBxW2JOK9OIheoZTKErl0sQirw1PugYjr9vvjFo8hGq68XMfh pasmo@lenovo