Skip to content

Instantly share code, notes, and snippets.

@Matt2012
Matt2012 / designer.html
Last active August 29, 2015 14:06
designer
<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="../core-menu/core-submenu.html">
<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">
@Matt2012
Matt2012 / designer.html
Created August 29, 2014 15:39
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<polymer-element name="my-element">
<template>
<style>
#div {
@Matt2012
Matt2012 / dabblet.css
Created September 2, 2013 19:43
"Google Now" Card
/**
* "Google Now" Card
*/
body {
background: #e1e1e1;
min-height: 100%;
margin: auto;
}
ul.gNow {
width: 450px;
@Matt2012
Matt2012 / dabblet.css
Created September 2, 2013 19:36
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%;
@Matt2012
Matt2012 / dabblet.css
Created August 1, 2013 23:42
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%;
@Matt2012
Matt2012 / dabblet.css
Created July 29, 2013 00:50 — forked from LeaVerou/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@Matt2012
Matt2012 / form.js
Created June 26, 2012 13:10
Modified titanium form module
// "Constants"
Object.prototype.merge = function(source) {
for(var key in source) {
if(source.hasOwnProperty(key)) {
this[key] = source[key];
}
}
return this;
}
@Matt2012
Matt2012 / android_prefs
Created February 26, 2012 01:48 — forked from stevenmirabito/android_prefs
Emulate The Native Android Preferences Grid (Tweaked to feel even more native!)
//Preferences are now maintained using Titanium.App.Properties
//Demonstration of using a window to add more options.
// the following code is both the logic and examples of using it
function settingsWindow() {
var win = Titanium.UI.currentWindow;
win.myDesc = [];
//
var firstPref = Titanium.App.Properties.getString('firstPref','Item A');
var secondPref = Titanium.App.Properties.getString('secondPref','This is a fancy description');