Skip to content

Instantly share code, notes, and snippets.

View tswast's full-sized avatar

Tim Sweña (Swast) tswast

View GitHub Profile
@tswast
tswast / cleannone.py
Created October 21, 2016 19:07
Remove None and NoneType from parameter types in docstrings.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@tswast
tswast / convert.py
Created September 15, 2016 00:00
Converting CREATE table SQL from MySQL to SQLite
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@tswast
tswast / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="music-demo">
<template>
@tswast
tswast / README.md
Last active December 10, 2015 05:48 — forked from mbostock/.block
Multi-Series Line to Stacked Area Chart Transition

This stacked area chart is constructed from a TSV file storing the market share of several popular web browsers over the last year. Data is from Clicky Web Analytics. The chart employs conventional margins and a number of D3 features: