Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
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; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
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'); | |
}); |
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 |
/** | |
* 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 ) |
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 |
// | |
// 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. |
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.
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.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent