Skip to content

Instantly share code, notes, and snippets.

View DonDebonair's full-sized avatar

Daan Debie DonDebonair

View GitHub Profile
@DonDebonair
DonDebonair / available-package-updates.py
Created May 25, 2022 20:01
Show available package updates for Poetry projects
#!/usr/bin/env python
from typing import cast, Dict
import toml
import subprocess
def update_deps(name: str, version: str, t: Dict) -> Dict:
def update(deps: Dict) -> None:
for key in deps:
v = deps[key]
@DonDebonair
DonDebonair / pyproject.toml
Created December 13, 2021 12:20
This does not allow me to install SciPy
[tool.poetry]
name = "test-scipy"
version = "0.1.0"
description = ""
authors = ["Daan Debie <daan@...>"]
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.dev-dependencies]
@DonDebonair
DonDebonair / resume.json
Last active April 21, 2024 12:10
resume.json
{
"$schema": "https://json.schemastore.org/resume",
"meta": { "theme": "relaxed" },
"basics": {
"name": "Daan Debie",
"label": "VP of Engineering at Source.ag",
"image": "",
"email": "daan@dv.email",
"phone": "",
"url": "https://www.daan.fyi/",
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC4ByMpWJDpZnx3/Ym+NQXdnrQacMzAdiJ/4+OANSY29UPp3QLIu98EbAm7XGFQknuRSb1zrmngx+GGe7BLN+s6/Rkk/qsBBV1B2rP0X7CYENPIrv1+nrfHSH2tm4AzFh7NRH1f7PLVYTi0cxrNI731K4OjkOvba7LImwy5FV5ipxKOjxoUVvS6HPI2e9gecXkwCrdYms3FqUa6FiSE2TYM7paaHudTiE1ltAfPeI7dkd7yiHpl4nsuYC8/IHGfkphYDCsltmPqU9fc4oKQ1jb60K6UZHqLKzs78DzlfpWhEHrIciynmm6AqKXjlt6tBEKX+rmpFmQAic80icE71YrXVRUA3RQurnQmxpaArT1+ZFUKOy7NVzT7RXga2diRiPW+XLS+fCvhL5HxUTuhkIolP6tFUZFfk/1sUtTdiL0jYff467ssi97lTXRHSd0u18PhknNgF/jWmSQzhEy1v5mWngdftaVsZLjLpV3s8R13HySqn5WL8QIn5qNBNZZcUjRs6RAP7475cUMW9r3SZQtalFtQc/e3wSr7EATB5IGs9ksB7KLG3pbLNfaxvtp1ZeIOQULIjWkHxiSeJHGB66+ifnqSvhIpM+64ly5jG45UxrxOhnUixDpzFPAHZ4yacBORSocfMLCh1t9WKj6zcQezRiHkv9GZz9gagFBYK1r0eQ== debie.daan@gmail.com
Verifying my Blockstack ID is secured with the address 14DtLwqnTLLvvPo96n8dXWnNbCDpHcuuSq https://explorer.blockstack.org/address/14DtLwqnTLLvvPo96n8dXWnNbCDpHcuuSq
@DonDebonair
DonDebonair / MockHBaseConnection.java
Last active September 6, 2020 06:12 — forked from agaoglu/MockHTable.java
MockHBaseTable & MockHBaseConnection
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.*;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
/**
@DonDebonair
DonDebonair / gen_slav.scala
Created April 1, 2016 11:04
Generate a sentence in a Slavic language
(0 to 300).map(_ => scala.util.Random.nextPrintableChar).filter(Set('k', 'v', 's', 'e', 'y', 't', 'p', 'a', 'u', 'o').contains).grouped(5).map(_.mkString("")).mkString(" ")
@DonDebonair
DonDebonair / example.cljs
Last active February 27, 2016 15:33
Generate keys for children in reagent component automatically
(defmacro defcomponent [name attrs & body]
(let [i (.indexOf attrs '&)]
(if (> i -1)
(let [sym (get attrs (inc i))]
`(defn ~name ~attrs
~@(postwalk-replace {sym `(with-idx ~sym)} body)))
`(defn ~name ~attrs
~@body))))

Keybase proof

I hereby claim:

  • I am DonDebonair on github.
  • I am dandy (https://keybase.io/dandy) on keybase.
  • I have a public key whose fingerprint is 648F BE1E 890B 4B63 5043 03E9 3C27 A86F E339 132D

To claim this, I am signing this object:

@DonDebonair
DonDebonair / 0_reuse_code.js
Created June 24, 2014 10:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console