Skip to content

Instantly share code, notes, and snippets.

View MaKleSoft's full-sized avatar

Martin Kleinschrodt MaKleSoft

View GitHub Profile
@MaKleSoft
MaKleSoft / CLA.md
Last active January 9, 2018 14:09
Individual Contributor Licence Agreement

MaKleSoft Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by MaKleSoft. This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to MaKleSoft in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact contact@maklesoft.com.

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License

You hereby grant, and agree to grant, to MaKleSoft a non-exclusive, perpetual, irrevocable, worldwide, fu

///<reference path="../../../bower_components/polymer/custom_typings/dom.d.ts"/>
///<reference path="../../../bower_components/polymer/src/typescript/polymer.d.ts"/>
namespace JSX {
export function createElement(element: string, attributes: any, ...children: string[]): string {
let attrs = "";
for (const attr in attributes) {
attrs += ` ${attr}="${attributes[attr]}"`;
}
@MaKleSoft
MaKleSoft / .vimrc
Created August 15, 2016 16:28
.vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" PLUGINS
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@MaKleSoft
MaKleSoft / cleanup.html
Last active August 29, 2015 14:03
GA and GTM
<!--
Add this as a custom html tag with a rule, that fires on all custom events. E.g.:
{{event}} matches RegEx .+
-->
<script id="gtm-tag">
(function() {
// Find and remove all gtm event tags
var gtmTags = document.querySelectorAll("#gtm-tag");
Array.prototype.forEach.call(gtmTags, function(tag) {
<script id="gtm-ga">
(function() {
var prevTag = document.getElementById("gtm-ga"),
prevTagParent = prevTag && prevTag.parentNode;
if (prevTag && prevTagParent) {
prevTagParent.removeChild(prevTag);
}
console.log("executing tag");
@MaKleSoft
MaKleSoft / analytics.js
Created July 2, 2014 08:33
Custom analytics.js for use with file:// protocol
!function(){function e(a,b){return a.name=b}function f(a,b){return a.href=b}function T(a){S.set(a)}function U(a){return"function"==typeof a}function V(a){return"[object Array]"==Object[z].toString[H](Object(a))}function W(a){return void 0!=a&&-1<(a.constructor+"")[o]("String")}function X(a,b){return 0==a[o](b)}function Y(a){return a?a[k](/^[\s\xa0]+|[\s\xa0]+$/g,""):""}function Z(a){var b=kb[t]("img");return b.width=1,b.height=1,b.src=a,b}function $(){}function _(b){return a instanceof Function?a(b):(T(28),b)}function ab(a){return _(a)[k](/\(/g,"%28")[k](/\)/g,"%29")}function db(a,b){if(a){var c=kb[t]("script");c.type="text/javascript",c.async=!0,c.src=a,c.id=b;var d=kb.getElementsByTagName("script")[0];d[P].insertBefore(c,d)}}function eb(){return _b||"https:"==kb[C][I]?"https:":"http:"}function fb(){var a=""+kb[C][E];return 0==a[o]("www.")?a[L](4):a}function gb(a){var b=kb.referrer;if(/^https?:\/\//i[i](b)){if(a)return b;a="//"+kb[C][E];var c=b[o](a);if((5==c||6==c)&&(a=b[n](c+a[y]),"/"==a||"?"==a||""==a||":
@MaKleSoft
MaKleSoft / Carousel.css
Created November 2, 2013 18:51
Hardware accelerated carousel kind for Enyo. Should work in all modern browsers (requires css transforms/transitions).