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
Homebrew build logs for python3 on macOS 10.10.5 | |
Build date: 2017-01-23 14:52:08 |
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
Homebrew build logs for grc on macOS 10.10.5 | |
Build date: 2017-02-09 14:20:48 |
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
#/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""XLS to CSV converter | |
Converts XLS(X) worksheets to CSV files | |
Author: Werner Robitza <werner.robitza@gmail.com> | |
Requirements: |
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
Homebrew build logs for git on macOS 10.13.1 | |
Build date: 2017-11-23 11:50:43 |
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
#!/usr/bin/env ruby | |
# rss-to-pdf.rb | |
# Author: Werner Robitza | |
# Synopsis: A basic console RSS to PDF writer using the prawn library | |
# Usage: rss-to-pdf.rb <url> | |
# <url> being the URL of the RSS news feed | |
require 'open-uri' | |
require 'nokogiri' | |
require 'pp' |
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
import random | |
from pprint import pprint | |
sources = 2 | |
conditions = 2 | |
subjects = 3 | |
playlists = {} | |
for subject in range(1, subjects + 1): |
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
#!/usr/bin/env python | |
# | |
# Author: Werner Robitza | |
# Extract topics from Markdown, open Outlook | |
# Requires Python 2 in Cygwin | |
import os | |
import urllib | |
body = """ |
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
import logging | |
formatter = logging.Formatter( | |
fmt='%(levelname)s: %(message)s' | |
) | |
handler = logging.StreamHandler() | |
handler.setFormatter(formatter) | |
logging.addLevelName(logging.ERROR, "\033[1;31m%s\033[1;0m" % logging.getLevelName(logging.ERROR)) | |
logging.addLevelName(logging.WARNING, "\033[1;33m%s\033[1;0m" % logging.getLevelName(logging.WARNING)) | |
logging.addLevelName(logging.INFO, "\033[1;34m%s\033[1;0m" % logging.getLevelName(logging.INFO)) |
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/bin/env python3 | |
# | |
# Generic script for handling input and output files in parallel | |
# | |
# Author: Werner Robitza | |
import argparse | |
import os | |
from tqdm import tqdm | |
from multiprocessing import Pool |
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
#!/usr/bin/env python3.6 | |
# | |
# Author: Werner Robitza | |
# | |
# Get speedtest results from speedtest URL | |
# | |
# Requirements: Python 3.6 and `pip3 install beautifulsoup4` | |
from bs4 import BeautifulSoup | |
import argparse |