Skip to content

Instantly share code, notes, and snippets.

View edumucelli's full-sized avatar

Eduardo edumucelli

View GitHub Profile
@edumucelli
edumucelli / todos.sh
Created May 20, 2022 13:20
Count TODO on your Git repositories
#!/bin/bash
declare -a Repos=(
"https://github.com/canonical/go-dqlite.git" "https://github.com/canonical/ubuntu-image"
)
# That is not a fault-proof TODO counting, just something that give a good enough counting.
# There might be multiple edge cases not considered here. Leave a comment for improvements.
for val in ${Repos[@]}; do
git clone $val counting > /dev/null 2>&1
@edumucelli
edumucelli / client.py
Created May 9, 2018 21:25 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
headers = {'content-type': content_type}
import org.dmg.pmml.FieldName;
import org.jpmml.evaluator.FieldValue;
import org.jpmml.evaluator.ModelEvaluator;
import org.jpmml.evaluator.ProbabilityDistribution;
import java.util.Map;
import java.util.concurrent.Callable;
class ParallelPredictor implements Callable {