Skip to content

Instantly share code, notes, and snippets.

View ekantola's full-sized avatar

Eemeli Kantola ekantola

View GitHub Profile
@ekantola
ekantola / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@ekantola
ekantola / RxJS-intro.js
Last active June 1, 2017 11:19
RxJS intro snippets
/*
* Observable
*/
var xs = Rx.Observable.range(0, 3)
xs.subscribe(log)
//=> 0
//=> 1
//=> 2
@ekantola
ekantola / RxJS-freaklies_20130412.js
Last active December 16, 2015 05:49
RxJS Futurice Frontend Weeklies 2013-04-12
/*
* Sample 1
*
* Fire up a content fetching request right away when still loading page,
* to reduce total loading time. But only render after document.ready
*/
// Setup inputs
var dynamicContentStr = $.getAsObservable('/dynamic-content')