Skip to content

Instantly share code, notes, and snippets.

View Valodim's full-sized avatar

Vincent Breitmoser Valodim

View GitHub Profile
@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 / gist:5366353
Created April 11, 2013 19:15
_openssl completion (unfinished)
#compdef openssl
_openssl_build_cache () {
local param=_openssl_${1//-/_}
typeset -gHa $param
if true || _cache_invalid openssl-$1 || ! _retrieve_cache openssl-$1; then
eval $param=$2
_store_cache openssl-$1 $param
@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 / gist:11284272
Last active May 23, 2017 19:00
keybase proof
### Keybase proof
I hereby claim:
* I am valodim on github.
* I am valodim (https://keybase.io/valodim) on keybase.
* I have a public key whose fingerprint is D4AB 1929 64F7 6A7F 8F8A 9B35 7BD1 8320 DEAD FA11
To claim this, I am signing this object:

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

[Verifying my OpenPGP key: openpgp4fpr:d4ab192964f76a7f8f8a9b357bd18320deadfa11]

@Valodim
Valodim / ToolableViewAnimator.java
Last active August 29, 2015 14:22
ViewAnimator with xml attribute to set initial child
/*
* Copyright (C) 2015 Vincent Breitmoser <look@my.amazin.horse>
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@Valodim
Valodim / file1.txt
Created September 1, 2015 11:27
OpenKeychain API Tests
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:987df4103257bb0b58856430295e39ba63503234]
@Valodim
Valodim / file1.txt
Created September 1, 2015 11:40
OpenKeychain API Tests
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:987df4103257bb0b58856430295e39ba63503234]
@Valodim
Valodim / file1.txt
Created September 1, 2015 11:44
OpenKeychain API Tests
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:987df4103257bb0b58856430295e39ba63503234]
@Valodim
Valodim / file1.txt
Created September 1, 2015 11:52
OpenKeychain API Tests
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:987df4103257bb0b58856430295e39ba63503234]