Skip to content

Instantly share code, notes, and snippets.

View erick-otenyo's full-sized avatar
🧭
Focusing

Erick Otenyo erick-otenyo

🧭
Focusing
View GitHub Profile
@erick-otenyo
erick-otenyo / .docker-private-registry-with-read-write-control.md
Created April 18, 2021 09:58
Run docker private registry with read/write access control
@erick-otenyo
erick-otenyo / parse_dotenv.bash
Created January 28, 2021 09:16 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
@erick-otenyo
erick-otenyo / README.md
Created December 7, 2020 18:22 — forked from mau21mau/README.md
Configure Celery + Supervisor With Django
@erick-otenyo
erick-otenyo / rsync_backup.py
Created November 4, 2020 13:15 — forked from seebk/rsync_backup.py
Python rsync backup script
#!/usr/bin/python3
#######################################################
# Python rsync Backup script
# Sebastian Kraft, 24.06.2013
#
#######################################################
#-----------------------------------------------------
# Config
@erick-otenyo
erick-otenyo / pip-install-gdal.md
Created June 19, 2019 13:01 — forked from cspanring/pip-install-gdal.md
Installing GDAL in a Python virtual environment

Installing GDAL in a Python virtual environment

Get gdal development libraries:

$ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install libgdal-dev

Create and activate a virtual environment:

@erick-otenyo
erick-otenyo / index.html
Last active March 3, 2023 09:33 — forked from andrewharvey/index.html
Mapbox GL Draw Rectangle
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Mapbox GL Draw Rectangle</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@erick-otenyo
erick-otenyo / react-modal-portal.js
Created December 19, 2018 10:14 — forked from rmdort/react-modal-portal.js
Simple react modal using portals
import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import cx from 'classnames'
const TAB_KEY = 9
const ESC_KEY = 27
const FOCUSABLE_ELEMENTS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA', 'A']
class ModalPortal extends React.Component {

d3-bilevelLabelTooltip

This is a modified d3js bilevel partition in which labels and tooltips were added.

The idea is to have an abbreviation of the partition displayed and a tooltip with a fancier description and the size of that partition.

The base for this chart was Mike's Bilevel Partition. Tooltips thanks to Sharon Howard

@erick-otenyo
erick-otenyo / .block
Created May 1, 2018 10:26 — forked from dahis39/.block
Dendrogram + Grouped Horizontal Bar Chart
license: gpl-3.0
height: 1100