Skip to content

Instantly share code, notes, and snippets.

View gearsdigital's full-sized avatar

Steffen Giers gearsdigital

View GitHub Profile
@cferdinandi
cferdinandi / get-siblings.js
Last active August 29, 2021 15:56
A simple script to get all siblings of an element.
/**
* Get siblings of an element
* @param {Element} elem
* @return {Object}
*/
var getSiblings = function (elem) {
var siblings = [];
var sibling = elem.parentNode.firstChild;
var skipMe = elem;
for ( ; sibling; sibling = sibling.nextSibling )
@SlexAxton
SlexAxton / .zshrc
Last active March 24, 2025 17:35
My gif workflow
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
/*
|--------------------------------------------------------------------------
| Register
|--------------------------------------------------------------------------
*/
Route::get('register', function()
{
return View::make('register');
});
@gearsdigital
gearsdigital / gist:1958811
Created March 2, 2012 14:41 — forked from anonymous/gist:1904282
Ant With Colors in OS X Terminal
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
ant () { command ant -logger org.apache.tools.ant.listener.AnsiColorLogger "$@" | sed 's/2;//g' ; }
@ziadoz
ziadoz / awesome-php.md
Last active May 8, 2025 07:37
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@fucx
fucx / bezahlcode.js
Created October 15, 2011 08:25
Integration eines Bezahlcode in eine GrandTotal-Rechnungsvorlage
var name = ""; // Name des Zahlungsempfängers
var account = ""; // Kontonummer des Zahlungsempfängers
var BNC = ""; // BLZ des Zahlungsempfängers
// hier wird der Verwendungszweck generiert: "RG <Rechnungsnummer> KD <Kundennummer>"
var reason = "RG%20"+grandtotalrecord.name()+"%20KD%20"+grandtotalrecord.client().id();
var URL = "bank://singlepayment?";
URL += "name=" + name.replace(/\ /g,"+");
URL += "&account=" + account;