Skip to content

Instantly share code, notes, and snippets.

View robdodson's full-sized avatar
🏠
Working from home

Rob Dodson robdodson

🏠
Working from home
View GitHub Profile
@robdodson
robdodson / polymer-table.html
Created February 6, 2014 03:35
table select
<template>
<table>
<thead>
<tr>
<content select="th"></content>
</tr>
</thead>
</table>
</template>
@robdodson
robdodson / polymer-table.html
Created February 6, 2014 07:11
responsive table styles
Polymer('polymer-table', {
ready: function () {
var css = [];
var style = document.createElement('style');
var nodeList = this.$.header.getDistributedNodes();
var thList = nodeList[0].children[0].children;
[].forEach.call(thList, function (th, i) {
css.push(
':host.mobile td:nth-of-type('+(i + 1)+'):before {'+
{
"interactive": false,
"remote": "upstream",
"repos": {
"jeresig/pulley": false
}
}
@robdodson
robdodson / bower.json
Created March 10, 2014 15:18
Polymer bower.json
{
"name": "polymer-example",
"version": "0.0.0",
"authors": [
"Rob Dodson <robdodson@google.com>"
],
"description": "An example Polymer project",
"keywords": [
"polymer",
"web-components"
@robdodson
robdodson / index.html
Last active August 29, 2015 13:57
code
<mark-down>
```
def hello
end
```
</mark-down>
<!doctype html>
<html>
<head>
<title>Paper Element Boilerplate</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="bower_components/platform/platform.js"></script>
@robdodson
robdodson / drive-upload.html
Created April 4, 2014 19:22
drive-upload.html
<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="drive-upload">
<template>
<!--Add a file picker for the user to start the upload process -->
<input type="file" id="filePicker" style="display: none;">
<input type="button" id="authorizeButton" style="display: none;" value="Authorize" />
</template>
<script>
(function (window, document, undefined) {

Test

Sweet.

hi, this is a test of the github-element

Hello there!

This is a test of the github-element

shaq approves