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
[user] | |
name="NAME HERE" | |
email="E-MAIL HERE" | |
[alias] | |
co = checkout | |
dt = difftool | |
cm = commit | |
cma = "commit -a" | |
s = status |
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 | |
# -*- coding: utf-8 -*- | |
# | |
# CherryMusic - a standalone music server | |
# Copyright (c) 2012-2014 Tom Wallroth & Tilman Boerner | |
# | |
# Project page: | |
# http://fomori.org/cherrymusic/ | |
# Sources on github: | |
# http://github.com/devsnd/cherrymusic/ |
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
<?php | |
// | |
// A validated PHP contact form | |
// http://blog.surmodernite.de/2013/12/a-validated-php-contact-form | |
// | |
// The MIT License (MIT) | |
// Copyright (c) 2013 [email protected] | |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
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 python | |
# -*- coding: utf-8 -*- | |
"""{script} [-r] [-f DIR] [-h|--help] [STARTDIR] | |
Get CherryMusic album art filenames for subdirectories. | |
-r recursive lookup in subdirectories | |
-f DIR find and print only this directory's art name | |
-h or --help print this text and exit | |
""" |
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 | |
""" The tao of unix programming, Python-adapted from github:globalcitizen/taoup | |
Quotes via: | |
https://raw.githubusercontent.com/globalcitizen/taoup/master/taoup | |
""" | |
import itertools | |
import os | |
import random |
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 flatten(dd: dict, *, separator: str = '_') -> dict: | |
""" | |
Flatten nested dicts deeply. | |
Nested keys must be `str` and will be concatenated with a separator. | |
Example: | |
>>> flatten({'flat': 1, 'a': {'nested': {'key': 2}}}) | |
{'flat': 1, 'a_nested_key': 2} | |
Note: | |
De-nesting can lead to new key collisions and data loss: | |
>>> flatten({'a': {'b': 111}, 'a_b': 2}) |