Skip to content

Instantly share code, notes, and snippets.

View bendavis78's full-sized avatar

Ben Davis bendavis78

  • O'Reilly Media
  • Dallas, TX
View GitHub Profile
# TODO:
# * Add authentication schemes
# * How will venue logins be handled?
## * http://docs.aws.amazon.com/cognito/devguide/identity/developer-authenticated-identities/
# * Figure out how auth workflow factors into the API
# * Figure out how wepay workflow factors into the API
swagger: '2.0'
info:
version: 1.0.0
# TODO:
# * Add authentication schemes
# * How will venue logins be handled?
## * http://docs.aws.amazon.com/cognito/devguide/identity/developer-authenticated-identities/
# * Figure out how auth workflow factors into the API
# * Figure out how wepay workflow factors into the API
swagger: '2.0'
info:
version: 1.0.0
# TODO:
# * Add authentication schemes
# * How will venue logins be handled?
## * http://docs.aws.amazon.com/cognito/devguide/identity/developer-authenticated-identities/
# * Figure out how auth workflow factors into the API
# * Figure out how wepay workflow factors into the API
swagger: '2.0'
info:
version: 1.0.0
# TODO:
# * Add authentication schemes
# * How will venue logins be handled?
## * http://docs.aws.amazon.com/cognito/devguide/identity/developer-authenticated-identities/
# * Figure out how auth workflow factors into the API
# * Figure out how wepay workflow factors into the API
swagger: '2.0'
info:
version: 1.0.0
<!DOCTYPE html>
<html>
<head>
<style>/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figur
<!DOCTYPE html>
<html>
<head>
<style>/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figur
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
# editor commands
'shift-J': 'core:page-down'
'shift-K': 'core:page-up'
'ctrl-j': 'editor:add-selection-below'
'ctrl-k': 'editor:add-selection-above'
'ctrl-d': 'find-and-replace:select-next'
'ctrl-shift-v': 'term2:paste'
', j': 'vim-mode-plus:join'
', r': 'window:reload'
.test {
color: red;
}
/*
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';
@bendavis78
bendavis78 / svg-template-support.js
Last active April 23, 2022 19:54
Polymer 1.0 suppoert for template inside svg
// Templates inside SVG won't work in polymer-1.0 without some monkeypatching.
(function(){
var doc = document.currentScript.ownerDocument;
var root = doc.querySelector('dom-module > template').content;
var templates = root.querySelectorAll('svg template');
var el, template, attribs, attrib, count, child, content;
for (var i=0; i<templates.length; i++) {
el = templates[i];
template = el.ownerDocument.createElement('template');
el.parentNode.insertBefore(template, el);