Skip to content

Instantly share code, notes, and snippets.

View kyleledbetter's full-sized avatar
🤖
Responsible AI Design

Kyle Ledbetter kyleledbetter

🤖
Responsible AI Design
View GitHub Profile
@kyleledbetter
kyleledbetter / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../chart-js/chart-js.html">
@kyleledbetter
kyleledbetter / gist:9816292
Created March 27, 2014 19:35
Look at the crap in this guy's Joomla <head>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/components/com_flexicontent/assets/css/flexicontent.css" type="text/css" />
<link rel="stylesheet" href="/components/com_flexicontent/assets/css/fcvote.css" type="text/css" />
<link rel="stylesheet" href="/components/com_flexicontent/templates/default/css/item.css" type="text/css" />
<link rel="stylesheet" href="/components/com_flexicontent/assets/css/tabber.css" type="text/css" />
<link rel="stylesheet" href="https://www.frisbeehunde.de/components/com_comprofiler/plugin/user/plug_cbconnect/css/buttons.css" type="text/css" />
<link rel="stylesheet" href="/media/system/css/calendar-jos.css" type="text/css" title="Grün" media="all" />
<link rel="stylesheet" href="/components/com_jevents/assets/css/jevcustom.css" type="text/css" />
<link rel="stylesheet" href="/components/com_jevents/views/map/assets/css/modstyle.css" type="text/css" />
<l
function simulatePathDrawing(path) {
// var path = document.querySelector('.squiggle-animated path');
var length = path.getTotalLength();
// Clear any previous transition
path.style.transition = path.style.WebkitTransition =
'none';
// Set up the starting positions
path.style.strokeDasharray = length + ' ' + length;
path.style.strokeDashoffset = length;
// Trigger a layout so styles are calculated & the browser
@kyleledbetter
kyleledbetter / gist:3830005
Created October 3, 2012 21:34
Conditionally load Joomla 3.0 javascript in a template that will support 2.5 as well
// Settings for Joomla 3.0.x
if (version_compare(JVERSION, '3.0.0', 'ge')) {
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
}
// Settings for Joomla 2.5.x and under
else {
// Do non-3.0 stuff here
}