- Install
Polymer/polymer#2.0-preview
bower package andwebcomponents/webcomponentsjs#v1
bower package
$ bower install --save Polymer/polymer#2.0-preview
$ bower install --save webcomponents/webcomponentsjs#v1
x |
{% assign similar-speakers = 'catherine-bracy|michal-migurski' | split: '|' %} | |
<section class="layout-semibreve"> | |
{% for entries in similar-speakers %} | |
{% for speaker in entries %} | |
<div class="layout-minim">{% include people/{{ speaker }}.html context="speaker-card" base=".." %}</div> | |
{% endfor %} | |
{% endfor %} |
{% assign test-topics = 'topic-one\Topic One|topic-two\Topic Two|topic-three\Topic Three' | split: '|' %} | |
{% for entries in test-topics %} | |
{% for topic in entries %} | |
<!-- topic = 'topic-one\Topic One' --> | |
<p>First: {{ topic | split: '\' | first }}</p><!-- First: topic-one --> | |
<p>Second: {{ topic | split: '\' | last }}</p><!-- Second: topic-two --> | |
{% endfor %} | |
{% endfor %} |
https://public.ducksboard.com/ijVTcgIdKtPzVyqY0BU0/ |
# Compares two CSVs and outputs a new CSV that excludes the intersection | |
# i.e.: | |
# $ python csv-difference.py -d fulldataset.csv -s subset.csv -o output.csv -u id -k id email name | |
import argparse | |
from csv import DictReader | |
from csv import DictWriter | |
def main(): | |
parser = argparse.ArgumentParser(description='Output difference in CSVs.') |
// Visit the Eventbrite discount/access code page for your event | |
// Expand the discount code table | |
// Open your JavaScript developer console and dump this code in | |
// Get the discount table rows | |
var t = $('#table_discount').find('tbody').find('tr'); | |
// Create an array to hold the codes | |
var codes = new Array; |
const Promise = require('bluebird'); | |
const sh = require('shelljs'); | |
/** | |
* Asynchronously executes a shell command and returns a promise that resolves | |
* with the result. | |
* | |
* The `opts` object will be passed to shelljs's `exec()` and then to Node's native | |
* `child_process.exec()`. The most commonly used opts properties are: | |
* |
/** | |
* When light DOM children are distributed into a `px-map` framework component, | |
* that component will often have to share a reference to one of its properties | |
* with the child. This behavior wraps around that use case, ensuring that | |
* properties will be applied to any distributed light DOM children and that | |
* changes to those properties on the parent will trigger a re-distribution | |
* to the children that keeps them up-to-date. | |
* | |
* Distributions should be configured in the component's Polymer constructor | |
* in a similar way to the `observers` block provided by the Polymer library. |
<!-- | |
In this example, we use a template dom-repeat to insert multiple markers into a map | |
from an array of simple objects. This is a way to use markers and other components | |
without feeding in a complex blob of GeoJSON. | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Map 1 Demo -- Simple Map</title> |