Skip to content

Instantly share code, notes, and snippets.

View gearsdigital's full-sized avatar

Steffen Giers gearsdigital

View GitHub Profile
@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;
@ziadoz
ziadoz / awesome-php.md
Last active July 13, 2024 05:29
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@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' ; }
/*
|--------------------------------------------------------------------------
| Register
|--------------------------------------------------------------------------
*/
Route::get('register', function()
{
return View::make('register');
});
@SlexAxton
SlexAxton / .zshrc
Last active April 25, 2023 03:57
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
@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 )
@neuling
neuling / gist:8647112
Created January 27, 2014 11:40
twitter followers push
1) visit the profile you would like to push (you need to be logged-in, does not work on your own account)
2) open javascript console
3) type in: (f=function(){$(".user-actions-follow-button:first").trigger("click");setTimeout(f,100)})();
4) hit enter
@rohozhnikoff
rohozhnikoff / gist:74a2a5ff04af6414e1c2
Created July 28, 2014 10:24
bootstrap grid standalone
//
// Grid system
// --------------------------------------------------
//## Define your custom responsive grid.
//** Number of columns in the grid.
@grid-columns: 12;
//** Padding between columns. Gets divided in half for the left and right.
@brianclements
brianclements / Commit Formatting.md
Last active November 6, 2024 18:03
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@paulirish
paulirish / what-forces-layout.md
Last active November 15, 2024 16:45
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent