Skip to content

Instantly share code, notes, and snippets.

AI vs Climate Change

Victor Schmidt vict0rsch

AI vs Climate Change
Block or report user

Report or block vict0rsch

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
vict0rsch /
Last active Apr 12, 2019
Produce shields from settings.yml to include as images into
from pathlib import Path
if __name__ == "__main__":
labels_path = Path() / "labels.yml"
if labels_path.exists():
with as f:
lines = f.readlines()
shields = []
names = []
i = 1
vict0rsch / github_labels_to_yaml_settings.js
Last active Apr 11, 2019
Get all labels + colors + description on your repository's `labels` section into a Project-Bot compatible settings.yml file
View github_labels_to_yaml_settings.js
// Just run this whole script in your browser's console on the appropriate webpage
// For instance on
// 1
var labels = [];
.forEach(function (element) {
name: `"${element.textContent.trim()}"`,
// using style.backgroundColor might returns "rgb(...)"
vict0rsch /
Last active Sep 7, 2019
Streaming and Multilabel F1 score in Tensorflow
# From my blog post:
import tensorflow as tf
import numpy as np
from tensorflow.python.ops import variable_scope
from tensorflow.python.ops import array_ops
from tensorflow.python.framework import ops
from sklearn.metrics import f1_score
View gist:d398d816c4f99e79bac9cd5d2a6c4900
Verifying my Blockstack ID is secured with the address 1DK3VpnQHPmtHDFW8gR2TiXUTbmTx4CbSX
You can’t perform that action at this time.