Skip to content

Instantly share code, notes, and snippets.

View iandouglas's full-sized avatar

w. ian douglas iandouglas

View GitHub Profile

The 10 Commandments of Modern Web Application

1. Instant Access

  • No Flash, Java or other plugins

2. Responsive Design

  • Responsive Layout
  • Mobile First
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
@iandouglas
iandouglas / gist:10441406
Last active August 29, 2015 13:59
How do I write a unit test to check that my code throws a CapabilityDisabledError when writing to GAE's datastore during an outage?
# coding=utf-8
import unittest
from google.appengine.api import users, capabilities
from google.appengine.ext import testbed
from google.appengine.runtime.apiproxy_errors import CapabilityDisabledError
from models.user import User
class TestDatastoreDown(unittest.TestCase):
def setUp(self):