Skip to content

Instantly share code, notes, and snippets.

@zas
zas / pretty.py
Created July 5, 2015 19:00
Pretty instance/dict/list/etc
# -*- coding: utf-8 -*-
def pretty(value, ind=' ', eol='\n', level=0):
"""Return a pretty representation of an object"""
linesuffix = eol + ind * level
lineprefix = linesuffix + ind
level += 1
if hasattr(value, '__class__') and '__dict__' in dir(value):
value = value.__dict__
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
# Copyright (C) 2015 Laurent Monin
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#!/bin/bash
# Génère un script qui copie les images source autant de fois que nécessaire,
# respectant la structure (ordre des répertoires et des fichiers),
# pour créer une vidéo image par image
# ensuite convertit les images en vidéo
# Note: ce script génére un script
# donc faire:
# $ . generate.sh > copyall.sh