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
#!/bin/sh | |
# | |
# A simple sh script to setup a fresh installed debian based unix system. | |
# by <Richard Stromer> [email protected] | |
WORKSPACE_FOLDER=$HOME/workspace | |
DOTFILES_FOLDER=$WORKSPACE_FOLDER/dotfiles | |
echo "Installing default packages..." | |
echo "This may prompt for your password." |
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/python3 | |
import random | |
import string | |
import sys | |
VOWELS = "aeiou" | |
CONSONANTS = "".join(set(string.ascii_lowercase) - set(VOWELS)) |
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
-module(factorial). | |
-export([factorial/1]). | |
factorial(N) -> factorial(N, 1). | |
factorial(0, Acc) -> Acc, | |
factorial(N, Acc) -> factorial(N-1, N*Acc). | |
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 random | |
import string | |
from datetime import date | |
from calendar import monthrange | |
firstnames = list() | |
lastnames = list() | |
def import_names(): |
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 | |
def removeEmptyFolders(path): | |
if not os.path.isdir(path): | |
return | |
# walk through folders | |
files = os.listdir(path) | |
if len(files): |
NewerOlder