Skip to content

Instantly share code, notes, and snippets.

View frankcorneliusmartin's full-sized avatar
🚄
vantage6 - personal health train

Frank Martin frankcorneliusmartin

🚄
vantage6 - personal health train
View GitHub Profile
@MoOx
MoOx / index.js
Last active October 20, 2024 20:10
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
@mooware
mooware / colorstreamhandler.py
Last active August 19, 2024 13:35
Colored log output for Python logging framework. Works on Windows, Linux, and probably Mac as well.
# colored stream handler for python logging framework (use the ColorStreamHandler class).
#
# based on:
# http://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output/1336640#1336640
# how to use:
# i used a dict-based logging configuration, not sure what else would work.
#
# import logging, logging.config, colorstreamhandler
#