Skip to content

Instantly share code, notes, and snippets.

@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 / 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');