Skip to content

Instantly share code, notes, and snippets.

mniami

Block or report user

Report or block mniami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:18eccd55216a4e94010161c19d8454dd
def licz(stawka, l4ilosc, l4proc, ilosc_dni_platnych_wolnych):
zus = 1450.0
podatek_proc=0.81
ilosc_dni_pracy_mies=20.0
miesiecy_w_roku=12.0
print(f'stawka {stawka}')
platne_wolne = ilosc_dni_platnych_wolnych * stawka / miesiecy_w_roku
l4 = l4ilosc * stawka * l4proc / miesiecy_w_roku
@mniami
mniami / AdbCommands
Created Oct 25, 2019 — forked from Pulimet/AdbCommands
Adb useful commands list
View AdbCommands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@mniami
mniami / pre-commit
Created Oct 15, 2019 — forked from acdha/pre-commit
Git pre-commit hook which runs various code linters. Install this to .git/hooks/pre-commit inside your favorite repos
View pre-commit
#!/usr/bin/env PYTHONIOENCODING=utf-8 python
# encoding: utf-8
"""Git pre-commit hook which lints Python, JavaScript, SASS and CSS"""
from __future__ import absolute_import, print_function, unicode_literals
import os
import subprocess
import sys
@mniami
mniami / optional.kt
Last active Sep 4, 2019
Example of migration from java Optional to Kotlin
View optional.kt
// That's pretty much an implementation of singleton btw
object Optional {
fun <T: Any> onNullable(obj: T?) : Iterable<T> {
if (obj != null) {
return listOf(obj)
}
return emptyList()
}
}
@mniami
mniami / Remove_MIUI_Bloatware.bat
Created Mar 29, 2018
Batch file to remove preinstalled bloated apps in MIUI devices with ADB
View Remove_MIUI_Bloatware.bat
@echo off
set /p Y=Enter adb path:
cd %Y%
adb devices
for %%X in (
"com.android.browser"
"com.android.chrome"
"com.android.email"
"com.android.thememanager"
"com.android.thememanager.module"
You can’t perform that action at this time.