This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import click | |
from moviepy.editor import * | |
from natsort import natsorted | |
@click.command() | |
@click.argument("path") | |
@click.argument("output-file-name") | |
def combine_movies(path: str, output_file_path: str): | |
if path is None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from PIL import Image | |
import click | |
@click.command() | |
@click.argument("path-to-image") | |
@click.argument("color-format") | |
def convert(path_to_image: str, color_format: str): | |
image = Image.open(path_to_image) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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" |