Skip to content

Instantly share code, notes, and snippets.

😷
Covid coding

makeworld makeworld-the-better-one

😷
Covid coding
View GitHub Profile
@makeworld-the-better-one
makeworld-the-better-one / go-build-all.sh
Last active Jun 22, 2020
Cross compile for all possible Golang targets. This script will always be updated, because it uses the `go` command to see what can be built.
View go-build-all.sh
#!/usr/bin/env bash
# Based on https://gist.github.com/eduncan911/68775dba9d3c028181e4
# but improved to use the `go` command so it never goes out of date.
type setopt >/dev/null 2>&1
contains() {
# Source: https://stackoverflow.com/a/8063398/7361270
[[ $1 =~ (^|[[:space:]])$2($|[[:space:]]) ]]
@makeworld-the-better-one
makeworld-the-better-one / skin_mask.py
Created Mar 19, 2020
OpenCV Python skin detection algorithm from the paper "RGB-H-CbCr Skin Colour Model for Human Face Detection"
View skin_mask.py
# Algorithm from: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.718.1964&rep=rep1&type=pdf
# Archived version: https://archive.org/download/10.1.1.718.1964/10.1.1.718.1964.pdf
# Very similar (a copy?) of https://arxiv.org/pdf/1708.02694.pdf
import cv2
import numpy as np
View keybase.md

Keybase proof

I hereby claim:

  • I am makeworld-the-better-one on github.
  • I am makeworld (https://keybase.io/makeworld) on keybase.
  • I have a public key ASAG56zgg-yOiiIiR97gQoXzwg3ZRlisF_Cl6T1r9I3Mfgo

To claim this, I am signing this object:

@makeworld-the-better-one
makeworld-the-better-one / Unified.js
Created Dec 8, 2019
Taken from my HP Envy 4520 printer's webpage, at <IP>/framework/Unified.js - then formatted
View Unified.js
This file has been truncated, but you can view the full file.
/*! (C) Copyright 2010, Hewlett Packard. All Rights Reserved. */ ;
if (typeof frameWorkObj === "undefined") {
frameWorkObj = {}
}
frameWorkObj.loadCss = function(a) {
document.writeln("<link href='" + a + "' rel='stylesheet' type='text/css' />")
};
frameWorkObj.loadScript = function(a) {
document.writeln("<script src='" + a + "' type='text/javascript'><\/script>")
View Canadian Ham Radio Helpful Links.md
@makeworld-the-better-one
makeworld-the-better-one / node-dreams.md
Last active Feb 23, 2019
Node dreams backup before sharing
View node-dreams.md

Node dreams 💻💭

To acheive the dream below

  • A lot of UI work is needed
    • Web design
    • Hank?
  • Existing technology needs to be improved to work in a mesh environment
    • IPFS, SSB, etc
    • Either hacks on our side or us submitting PRs to their repo
  • Deployment and outreach needs to happen above all else
View shebanger.py
#!/usr/local/bin/python3
import os
def shebang_dir(dir, ext=".py", sb="#!/usr/local/bin/python3"):
"""Add a shebang to the top of every specified file type in a directory.
Is always recursive.
You can’t perform that action at this time.