Skip to content

Instantly share code, notes, and snippets.

View Searge's full-sized avatar
🦄
Servering servers

Sergij Boremchuk Searge

🦄
Servering servers
View GitHub Profile
@Searge
Searge / Calculator.ipynb
Last active October 2, 2018 13:45
Калькулятор на Stepik'у
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Searge
Searge / exchange.py
Last active October 9, 2018 15:44
Python Snippets
'''
Pythonic way of
VALUE SNAPPING
'''
a, b = 5, 10
print(a, b)
a, b = b, a
print(a, b)
@Searge
Searge / Cabal_sanboxes.md
Last active November 5, 2018 18:35
Помилки Конфігурація cabal, gcc

Вступ до Кабалових пісочниць

Цей пост описує ізольовані компоненти, нову особливість cabal, яка буде присутня у версії 1.18. Пісочниці дозволяють створювати пакети окремо, створюючи для кожного пакунка приватний пакет. Якщо ви знайомі з віртуальною версією Python або RVM Ruby, це аналог Haskell. Незважаючи на те, що 1,18 все ще не існує, ви можете вже експериментувати з новими функціями, будуючи cabal з Git. Цей пост призначений, головним чином, для людей, що знаходяться в пісочниці. Якщо ви вже користувалися cabal-dev, не соромтеся пропускати вступні розділи.

Будуємо Cabal з git

Вважаємо, що ви вже маєте попередню встановлену версію:

$ git clone git://github.com/haskell/cabal.git /path/to/cabal
$ cd /path/to/cabal
@Searge
Searge / index.haml
Created November 1, 2018 12:28
The Mine: No JS, CSS only adventure game
-# Game grid variablesb
-# Make sure these are reflected in the SASS
- rows = 4;
- columns = 12;
- tilesPerSegment = 3;
- tilePerSegmentVertical = 7;
- hasIntro = true;
- hasLoader = true;
-# Game
.game
@Searge
Searge / wtfm.py
Last active April 22, 2021 05:00
Save the output of Python's built-in help() function/module to file.
#!/usr/bin/env python3
# Write The Fucking Manual function
# exports the output of Python's built-in `help()` function to file
# No Copyright
# ------------
# This work has been identified as being free of known restrictions
# under copyright law, including all related and neighboring rights.
# https://creativecommons.org/publicdomain/mark/1.0/
import importlib
@Searge
Searge / keybase.md
Created November 6, 2022 14:17
Keybase proof

Keybase proof

I hereby claim:

  • I am searge on github.
  • I am searge (https://keybase.io/searge) on keybase.
  • I have a public key ASAyKw4YNYyHkz_UUb3tCt_-TTJEIeNWa9pSHpd2qGmfTQo

To claim this, I am signing this object:

@Searge
Searge / .bashrc
Created December 19, 2021 12:22
Kali Linux bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Searge
Searge / proof.md
Last active January 28, 2024 20:44
openpgp4fpr:36B0B7553AE5A95B

openpgp4fpr:44DD607996A4DA8E152AE90836B0B7553AE5A95B

@Searge
Searge / emoji_cheat_sheat.md
Last active April 7, 2024 22:24
All GitHub Emojis