Skip to content

Instantly share code, notes, and snippets.

View MkDierz's full-sized avatar
🏠
Working from home

syibbran mulaesyi MkDierz

🏠
Working from home
View GitHub Profile
@aziascreations
aziascreations / termux-url-opener
Last active January 11, 2021 05:21
Termux URL opener script with youtube downloader
#!/bin/bash
clear
bold=$(tput bold)
normal=$(tput sgr0)
if [[ $1 =~ ^.*youtu.*$ ]]; then
echo "${bold}Youtube-dl${normal}"
echo "> ${1}"
@bertcarremans
bertcarremans / img_train_test_split.py
Last active November 5, 2021 09:49
Split images randomly over train or validation folder
# Copyright 2014-2017 Bert Carremans
# Author: Bert Carremans <bertcarremans.be>
#
# License: BSD 3 clause
import os
import random
from shutil import copyfile