Skip to content

Instantly share code, notes, and snippets.

@adam-singer
adam-singer / test.json
Created August 17, 2013 17:01
Example of how to use the mirror API to send your glass a url with https://developers.google.com/glass/playground
{
"kind": "mirror#timelineItem",
"id": "51e062f1-0aa7-4eaf-949e-d5fa6e1ade34",
"created": "2013-08-15T05:47:16.873Z",
"updated": "2013-08-17T05:48:39.025Z",
"etag": "\"qrqSPos28fIbIGMRUHRGC7DJpNM/7NN5LvTKra5Wkm2lMw4Z_lDpYNg\"",
"text": "http://www.google.com",
"menuItems": [
{
"action": "VIEW_WEBSITE",
@romannurik
romannurik / DashboardLayout.java
Created March 23, 2011 05:06
A custom Android layout class that arranges children in a grid-like manner, optimizing for even horizontal and vertical whitespace.
/*
* ATTENTION:
*
* This layout is now maintained in the `iosched' code.google.com project:
*
* http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java
*
*/
/*