Skip to content

Instantly share code, notes, and snippets.

diff -ru layoutlib_4-0-3-r1/Android.mk layoutlib_4-4-2-r1/Android.mk
--- layoutlib_4-0-3-r1/Android.mk 2014-03-13 18:27:34.000000000 -0700
+++ layoutlib_4-4-2-r1/Android.mk 2014-03-13 18:28:01.000000000 -0700
@@ -25,12 +25,15 @@
# We need to process the framework classes.jar file, but we can't
# depend directly on it (private vars won't be inherited correctly).
# So, we depend on framework's BUILT file.
-built_framework_dep := $(call java-lib-deps,framework)
-built_framework_classes := $(call java-lib-files,framework)
+built_framework_dep := $(call java-lib-deps,framework-base)
@sfrdmn
sfrdmn / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@sfrdmn
sfrdmn / designer.html
Created October 24, 2014 06:35
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">
<polymer-element name="my-element">
@sfrdmn
sfrdmn / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@sfrdmn
sfrdmn / gist:1217377
Created September 14, 2011 18:35
DAI 523 - Pino vs. Godzilla
var title = document.getElementById("title");
title.parentNode.removeChild(title);
function square( x ) {
return x * x;
}
pino.buildWall = function( n ) {
var wall = document.getElementById("wall");
var i = 0;
@sfrdmn
sfrdmn / gist:1227510
Created September 19, 2011 20:25
SVG Skeleton
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1"
baseProfile="full"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ev="http://www.w3.org/2001/xml-events">
<!-- ENTER YER STUFF HERE. DELETE THIS LINE -->
</svg>
@sfrdmn
sfrdmn / gist:1227514
Created September 19, 2011 20:27
DAI 523 - SVG Examples
<!-- DELETE ME -->
@sfrdmn
sfrdmn / gist:1233257
Created September 21, 2011 20:48
DAI523 - D3 - Binding data and creating graphs
d3.select("body").append("svg:svg").attr("width", 3000).attr("height",500);
var chart = d3.select("svg");
var fill = d3.scale.category20();
d3.json("data/dataset1.json", function(json) {
var size = function(d,i) {
return d.size;
}
@sfrdmn
sfrdmn / gist:1233255
Created September 21, 2011 20:48
DAI 523 - 9/21 - Modify SVG
// The following line selects all circles on the page and changes their stroke-width to 10 (px)
d3.selectAll("circle").attr("stroke-width", 10)
// Two slashes means "comment". Commented code is not run.
// It is good to comment your code so you remember what's going on.
// d3.selectAll("circle").attr("fill", "blue");
// The following lines deal with making selections and then sub selections within those selections
d3.selectAll("circle").attr("stroke-width", 10);
d3.select("#blue").selectAll("circle").attr("stroke","rgb(34,56,35)");
@sfrdmn
sfrdmn / gist:1249346
Created September 28, 2011 21:46
DAI523 - Bubble Chart Skeleton
/*
Yo doods. This code creates a bubble chart. It's unfinished, so you gotta finish it.
Use the comments I left to figure things out. Comments are specified by two slashes //
Multiple line comments begin with /asterix and end with asterix/
Commented code does not run.
;\
|' \
_ ; : ;
/ `-. /: : |