Skip to content

Instantly share code, notes, and snippets.

Vinzenz Sinapius vinzBad

Block or report user

Report or block vinzBad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vinzBad
vinzBad / archnews.py
Last active Nov 16, 2017
Quick and dirty snippet to get the latest ArchLinux - News
View archnews.py
#!/usr/bin/python
"""
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2017 Vinzenz Johann Sinapius <vinzenz.sinapius@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@vinzBad
vinzBad / pack.py
Last active Apr 27, 2017
Pack images in the current dir and subfolders for printing
View pack.py
#!usr/bin/python3
import os
from PIL import Image
from rectpack import newPacker
IMAGES = []
# to lazy to handle rotation right now
PACKER = newPacker(rotation=False)
@vinzBad
vinzBad / doxygen.config
Created Mar 2, 2017
Simple doxygen config for Monogame.Extended
View doxygen.config
# Doxyfile 1.8.11
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
@vinzBad
vinzBad / jobtitle.py
Last active Aug 29, 2015
Generate a funny job title from your name
View jobtitle.py
adjectives = {
'A': 'International',
'B': 'Coporate',
'C': 'National',
'D': 'Lead',
'E': 'Executive',
'F': 'Acting',
'G': 'District',
'H': 'Internal',
'I': 'Central',
@vinzBad
vinzBad / netzplan.py
Created Mar 24, 2015
Practice: Precedence diagram in python
View netzplan.py
class Process(object):
def __init__(self, name, duration, next_processes=[]):
self.name = name
self.duration = duration
self.previous_processes = []
self.next_processes = next_processes
for process in next_processes:
process.previous_processes.append(self)
def earliest_starting_point(self):
You can’t perform that action at this time.