Skip to content

Instantly share code, notes, and snippets.

@sjmiles
sjmiles / hello_world.md
Created June 30, 2020 21:44
Save-To-Gist Example

I GIST, therefore I am.

@sjmiles
sjmiles / hello_world.md
Created June 29, 2020 22:39
Save-To-Gist Example

I GIST, therefore I am.

@sjmiles
sjmiles / hello_world.md
Created June 29, 2020 22:19
Save-To-Gist Example

I GIST, therefore I am.

@sjmiles
sjmiles / filename
Created June 29, 2020 22:18
Save-To-Gist Example
# I GIST, therefore I am.
@sjmiles
sjmiles / hello_world.md
Created June 29, 2020 22:12
Save-To-Gist Example

I GIST, therefore I am.

meta
name: '!332959691591444:app-shell-cnrslo6955v3oiua'
storageKey: 'firebase://arcs-storage.firebaseio.com/AIzaSyBme42moeI-2k8WgXh-6YK_wYyjEXo4Oz8/0_5_0-alpha/arcs/-LMyXkk2dCzIRHthsQ4v'
import './in-memory.manifest'
resource Store2_DataResource
start
[{"id":"-LMtek9LSN6eSMg97nXV","name":"User","location":{"latitude":38.173081599999996,"longitude":-122.24512},"$id":"SYSTEM_user:0"},{"id":"-LMtek9KSKzIom2zVZvp","name":"Alphonse","$id":"SYSTEM_users:0"},{"id":"-LMtek9KSKzIom2zVZvq","name":"Barney","$id":"SYSTEM_users:1"},{"id":"-LMtek9LSN6eSMg97nXV","name":"Cletus","$id":"SYSTEM_users:2"},{"id":"-LMtek9Mdy1iAc3MAkNw","name":"Berni","$id":"SYSTEM_users:3"},{"id":"-LMtek9Mdy1iAc3MAkNx","name":"Doug","$id":"SYSTEM_users:4"},{"id":"-LMtek9Nzp8f5pwiLuF6","name":"Maria","$id":"SYSTEM_users:5"},{"id":"-LMtek9Nzp8f5pwiLuF7","name":"Matt","$id":"SYSTEM_users:6"},{"id":"-LMtek9Nzp8f5pwiLuF8","name":"McNulty","$id":"SYSTEM_users:7"},{"id":"-LMtek9Nzp8f5pwiLuF9","name":"Mike","$id":"SYSTEM_users:8"},{"id":"-LMt
@sjmiles
sjmiles / imports.html
Last active September 25, 2015 09:04
<base href="https://polygit.org/
/cdn+sjmiles+:gh-pages/
/lab+sjmiles+:gh-pages/
/firebase-bower+firebase+:master/
/components/">
<link rel="import" href="polymer/polymer.html">
<link rel="import" href="iron-icons/iron-icons.html">

Given a host containing:

<template is="dom-repeat" items="{{obj.strings}}">

When the host observes a change, it will pass the value obj.strings to the repeat. The effect is something like:

dom-repeat.items = obj.strings;
@sjmiles
sjmiles / pms.md
Last active June 7, 2018 00:55
Polymer Magic Server [DRAFT]

Polygit

Polygit is deprecated and only compatible with Bower and Polymer 1.0 & Polymer 2.0. As an alternative, use this Glitch to load dependencies via Bower.

Polygit serves files directly from github (via cdn.rawgit.com) in a manner that is compatible with HTML Imports natural deduplication feature.

Examples:

Load polymer from master branch (full debug mode)