Skip to content

Instantly share code, notes, and snippets.

View mcnasby's full-sized avatar

Mike McNasby mcnasby

View GitHub Profile
@mcnasby
mcnasby / dabblet.css
Created May 4, 2017 15:53
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@mcnasby
mcnasby / designer.html
Last active March 10, 2016 02:19
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../yt-video/yt-search-video.html">
function doGet(e) {
var params = e.parameter;
var sheetName = params.tabname || undefined;
var sheetId = params.sheetid || undefined;
if (!sheetName || !sheetId) {
var json = {
error: 'Missing or incorrect values for parameters: tabname || sheetid'
};
}
// From: http://responsivegeometry.com/
.flex-square{
width: 30%;
background: #ca0164;
}
.flex-square:before{
content: "";
display: block;
padding-top: 100%;
}
var flattenObject = function(ob) {
var toReturn = {};
for (var i in ob) {
if (!ob.hasOwnProperty(i)) continue;
if ((typeof ob[i]) == 'object' && ob[i] !== null) {
var flatObject = flattenObject(ob[i]);
for (var x in flatObject) {
if (!flatObject.hasOwnProperty(x)) continue;
@mcnasby
mcnasby / 0_reuse_code.js
Created August 18, 2014 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console