This file contains 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
# Use vim keybindings and vim as default editor | |
set -o vi | |
export EDITOR=vim | |
# Nice terminal with colors | |
export PS1="\e[0;34m\w\$ \e[m" | |
alias ls='ls -G' | |
export LS_COLORS='di=92:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90' | |
# Change directory and then list directory contents |
This file contains 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
from collections import namedtuple | |
from marshmallow import Schema | |
from marshmallow.decorators import post_load | |
def class_and_schema(class_name, fields): | |
"""Create a class and its marshmallow schema. | |
Example:: |