This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#!/usr/bin/env bash | |
REPS=`find /home/dev/Workspace -maxdepth 4 -type d -name ".git"` | |
USERNAME=`git config --get user.name` | |
echo "search for history of ${USERNAME}" | |
for REP in $REPS | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files for examples | |
# Test for an interactive shell. There is no need to set anything | |
# past this point for scp and rcp, and it's important to refrain from | |
# outputting anything in those cases. | |
# If not running interactively, don't do anything! | |
[[ $- != *i* ]] && return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* User: Marco Pfeiffer | |
* Date: 04.04.13 | |
* Time: 09:43 | |
*/ | |
(function ($) { | |
var IMPORTANT_FORMS = "form:not(.unimportant):not([target])"; | |
var IMPORTANT_INPUT_FIELDS = ":input[name]:not(.unimportant)"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// behavior for tabs | |
// FIXME can create unexpected behavior with multiple tabs on one page, also with multiple browser tabs/windows | |
$(document).on('click', '[data-toggle="tab"], [data-toggle="pill"]', function(event) { | |
var hash = $.prop(this, "hash"); | |
$.cookie('active-tab', hash, { path: '/' }); | |
}); | |
$(window).on('popstate hashchange ready load', function() { | |
var cookieTab = $.cookie('active-tab'); | |
var tab = cookieTab || null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is a hacky and brutal polyfill to somewhat implement zoom in firefox | |
// https://caniuse.com/#feat=css-zoom | |
// it allows to use jQuery's $('.element').css({zoom: 1.5}); | |
// there is no effort to actually implement a normal css polyfill | |
// this polyfill also doesn't work when the zoomed element has margins since they are used to fake the new size. | |
$.cssNumber.zoom = true; | |
if (!("zoom" in document.body.style)) { | |
$.cssHooks.zoom = { | |
get: function(elem, computed, extra) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mobile device meta | |
headerData.5 = COA | |
headerData.5 { | |
# general meta tags | |
1 = TEXT | |
1.value ( | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SvgImportViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper | |
{ | |
private static $id = 0; | |
/** | |
* Renders the content. | |
* | |
* @param string $src | |
* @return string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONSOLE_BIN=`symfony_console_binary` | |
if [ $CONSOLE_BIN ] | |
then | |
$CONSOLE_BIN $* | |
else | |
echo "no console binary found" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// check for support of a datepicker | |
// assume that the browser must be able to parse the date if it is of type date | |
$.support.datepicker = (function () { | |
var el = document.createElement('input'), notADateValue = 'not-a-date'; | |
el.setAttribute('type', 'date'); | |
el.setAttribute('value', notADateValue); | |
return !(el.value === notADateValue); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// automatically attaches select2 to all selects with the js-select2 class | |
// All data-* attributes are passed as options to select2, eg. <select class="js-select2" data-minimum-input-length="3"></select> | |
// use the update event if you add new html (ajax etc.) | |
$(document).on("ready update", function (e) { | |
var $target = $(e.target); | |
$target.find("select.js-select2").each(function () { | |
var $select = $(this); | |
var options = $select.data(); | |
for (var key in options) { | |
var option = options[key]; |