Skip to content

Instantly share code, notes, and snippets.

View fabienb's full-sized avatar
:octocat:
I may be slow to respond.

Fabien Butazzi fabienb

:octocat:
I may be slow to respond.
View GitHub Profile
@fabienb
fabienb / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
@fabienb
fabienb / 0_reuse_code.js
Created October 21, 2013 13:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
function parseJsonDateTime(obj) {
return new Date(obj.match(/\d+/) * 1);
}
@fabienb
fabienb / Long-Shadow-(LESS).markdown
Created September 13, 2013 22:29
A Pen by Fabien Butazzi.