Skip to content

Instantly share code, notes, and snippets.

View Valodim's full-sized avatar

Vincent Breitmoser Valodim

View GitHub Profile
@Valodim
Valodim / gist:7017924
Last active July 8, 2022 21:53
zsh json parser (WIP)
#!/bin/zsh
typeset -A closings
closings=( '{' '}' '[' ']' )
# usage: find-matching strvar pos
# heart of the parser. matches one "element." matching depends on first
# character (at pos), can be " for string matching or any in closings
# associative parameter.
@Valodim
Valodim / openstacksdk.nix
Created July 5, 2021 11:15
openstacksdk nix
{ stdenv
, buildPythonPackage
, fetchPypi
, pbr
, pyyaml
, appdirs
, requestsexceptions
, jsonpatch
, munch
, decorator
agave
b/share/fonts/truetype/Agave-Regular.ttf
{a => b}/share/fonts/truetype/Agave-Regular.ttf | Bin
1 file changed, 0 insertions(+), 0 deletions(-)
aileron
b/share/fonts/opentype/Aileron-Thin.otf
b/share/fonts/opentype/Aileron-UltraLight.otf
b/share/fonts/opentype/Aileron-ThinItalic.otf
b/share/fonts/opentype/Aileron-LightItalic.otf

This Gist confirms the Linked Identity in my OpenPGP key which links it to this Github account.

[Verifying my OpenPGP key: openpgp4fpr:d4ab192964f76a7f8f8a9b357bd18320deadfa11]

let encrypted = `
-----BEGIN PGP MESSAGE-----
hF4D1ovTTUio0zYSAQdAdswHo0VB15l6O0SuyZKrdJihMyJpAXXJ2YchVXzIDGAw
kHawzdnKw2tRCwIwzGolOUvtiLHwelfqrr2oriKouRvNveDRvr3gyIKXgkR8ivOf
hJ4DxVSidf4HPbISAwMEwGq1II3M4Kaj6vDT1PTsaeH3Vod/pkm29ekkMEZVpDUe
9d0wJuabKs5WAJRVRsOe9Y8z4XuqJvyJG3whjo+WLOXCIIiCOZH4L3JaTxay3kS/
PjVKJzc+cn54QM+1FTo4MLtwu4rDUkjI1v6fYB/yGCrnDPNDedOyCOELbsMGjm3B
UIKHwYJwz3PXk5VcdfL2KNLCNQFAshWj55wzcNMr87J9yGaQXJ5b2lmJIa0qNPE2
eGcwe9FQCbl3uthmEj0aAHvsPC/muK0ArG3G7ecCFnIhnliQTxsbY3gKyMfnPBbz
@Valodim
Valodim / gist:5225460
Created March 22, 2013 23:11
rendering a moodbar .mood file as an svg with d3 in javascript
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
// takes .mood files from moodbar as input
var files = [
"05 - Awolnation - Jump On My Shoulders.mood"
];
files.forEach(function(f) {
@Valodim
Valodim / _email-notmuch
Last active September 15, 2018 19:24
notmuch zsh completion (for version 0.27)
#autoload
local expl
local -a notmuch_addr
notmuch_addr=( ${(f)"$(notmuch address -- $PREFIX'*')"} )
notmuch_addr=( ${${notmuch_addr##*<}%%>*} )
_description notmuch-addr expl 'email address (notmuch)'
compadd "$expl[@]" -a notmuch_addr
#compdef maddr magrep mbnc mcom mdeliver mdirs mexport mflag mflow mfwd mgenmid mhdr minc mless mlist mmime mmkdir mpick mrep mscan msed mseq mshow msort mthread
_mblaze_colon_separated_headers() {
_message 'headers (colon separated)'
}
_mblaze_message() {
local ret=1 expl tmp curmsg
local -a mseq mseqnums mshortcuts mshortcutdescrs
setopt localoptions extendedglob
@Valodim
Valodim / gist:12c35acbeaffedd4650777de88c9da20
Last active October 10, 2017 00:52
Android NFC reader hotspot positions by Model
Model, X-Axis, Y-Axis, Datapoints
7DTB37, 0.5, 0.410094637224, 2
306SH, 0.502777777778, 0.541446208113, 2
402ZT, 0.375, 0.496323529412, 3
710C, 0.438888888889, 0.363315696649, 4
5027B, 0.475, 0.468864468864, 5
5042T, 0.508333333333, 0.544715447154, 3
5051X, 0.497222222222, 0.517857142857, 2
5054S, 0.708333333333, 0.658536585366, 2
5054W, 0.469444444444, 0.505691056911, 1
@Valodim
Valodim / openpgp.txt
Created October 6, 2017 17:18
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:76982050caaaafd323e89f3b5703e4820be3a8d7]