This file contains hidden or 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
var FormRepo = function (namespace) { | |
/// <summary>Persistent form values, saves to localStorage</summary> | |
/// <param name="namespace" type="String">the namespace to store values in localStorage</param> | |
// should also protect per page, since we could have the same forms in various places | |
this.N = namespace + '.' + window.location.pathname; | |
}; | |
$.extend(FormRepo.prototype, { | |
namespace: function (key) { | |
return this.N + '.' + key; |
This file contains hidden or 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 SpinningItem{ | |
public function __construct($content){$this->content = $content;} | |
} | |
class TextItem extends SpinningItem{} | |
class OptionsItem extends SpinningItem{} | |
function parse_spinning_string($string){ | |
if(preg_match_all('/\{((?>[^{}]+)|(?R))*\}/', $string, $matches)){ | |
foreach($matches[0] as $key => $match){ |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | |
<T3DataStructure> | |
<meta type="array"> | |
<langDisable>1</langDisable> | |
</meta> | |
<sheets> | |
<general> | |
<ROOT type="array"> | |
<TCEforms> | |
<sheetTitle>Spalten (normal)</sheetTitle> |
This file contains hidden or 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 php | |
<?php | |
/** | |
* mh_remove_unused_product_images.php | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: |
This file contains hidden or 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
$vat_rates = array( | |
'AT' => 20, // Austria | |
'BE' => 21, // Belgium | |
'BG' => 20, // Bulgaria | |
'HR' => 25, // Croatia | |
'CY' => 19, // Cyprus | |
'CZ' => 21, // Czech Republic | |
'DK' => 25, // Denmark | |
'EE' => 20, // Estonia | |
'FI' => 24, // Finland |
This file contains hidden or 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
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
This file contains hidden or 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
// NB: This is a proof of concept and needs work before using in production. | |
// https://github.com/turbolinks/turbolinks/issues/196#issuecomment-320610483 | |
// Copy paste the javascript below to somewhere that loads after turbolinks.js. | |
// Source: Converted coffee to JS with: https://awsm-tools.com/code/coffee2js | |
// https://github.com/turbolinks/turbolinks/blob/master/src/turbolinks/snapshot.coffee | |
Turbolinks.Snapshot.fromHTMLElement = function (htmlElement) { | |
var bodyElement, headDetails, headElement, _ref; |
OlderNewer