Skip to content

Instantly share code, notes, and snippets.

--- a/src/com/facebook/buck/android/AndroidPrebuiltAar.java
+++ b/src/com/facebook/buck/android/AndroidPrebuiltAar.java
@@ -56,7 +56,10 @@ public class AndroidPrebuiltAar
/* resources */ ImmutableSortedSet.<SourcePath>of(),
Optional.of(proguardConfig),
/* postprocessClassesCommands */ ImmutableList.<String>of(),
- ImmutableSortedSet.<BuildRule>of(prebuiltJar),
+ /* exportedDeps */ ImmutableSortedSet.<BuildRule>naturalOrder()
+ .add(prebuiltJar)
+ .addAll(androidLibraryParams.getDeclaredDeps())
@sdwilsh
sdwilsh / like_2b_test.html
Created August 25, 2011 01:49
Like button test page
<html>
<head>
<title>Test Page</title>
</head>
<body>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=167435886666146&amp;xfbml=1"></script><fb:like href="http://shawnwilsher.com/" send="true" width="450" show_faces="true" action="like" font=""></fb:like>
<fb:like href="http://shawnwilsher.com/archives/549" send="true" width="450" show_faces="true" action="like" font=""></fb:like>
</body>
@sdwilsh
sdwilsh / like_2_test.html
Created August 25, 2011 00:39
Two like buttons test page
<html>
<head>
<title>Test Page</title>
</head>
<body>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=167435886666146&amp;xfbml=1"></script><fb:like href="http://shawnwilsher.com/" send="true" width="450" show_faces="true" action="like" font=""></fb:like>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=167435886666146&amp;xfbml=1"></script><fb:like href="http://shawnwilsher.com/" send="true" width="450" show_faces="true" action="like" font=""></fb:like>
@sdwilsh
sdwilsh / send_test.html
Created August 25, 2011 00:33
Send button test page
<html>
<head>
<title>Test Page</title>
</head>
<body>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:send href="http://shawnwilsher.com/" font=""></fb:send>
</body>
@sdwilsh
sdwilsh / like_test.html
Created August 25, 2011 00:32
Like button test page
<html>
<head>
<title>Test Page</title>
</head>
<body>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=167435886666146&amp;xfbml=1"></script><fb:like href="http://shawnwilsher.com/" send="true" width="450" show_faces="true" action="like" font=""></fb:like>
</body>
@sdwilsh
sdwilsh / gist:1003118
Created June 1, 2011 19:40
Script used to be a buildslave (x86-64)
SET MOZBUILDDIR=c:\mozilla-build\
@echo off
SET MOZ_MSVCVERSION=9
SET MOZILLABUILD=%MOZBUILDDIR%
echo "Mozilla tools directory: %MOZBUILDDIR%"
REM Get MSVC paths
@sdwilsh
sdwilsh / gist:1003113
Created June 1, 2011 19:39
Script used to be a buildslave (x86)
SET MOZBUILDDIR=c:\mozilla-build\
@echo off
SET MOZ_MSVCVERSION=9
SET MOZILLABUILD=%MOZBUILDDIR%
echo "Mozilla tools directory: %MOZBUILDDIR%"
REM Get MSVC paths
@sdwilsh
sdwilsh / gist:997446
Created May 29, 2011 03:41
builds.js output
// success
{ key: 'build.mozilla-central_snowleopard_test-mochitest-other.145.step.mochitest-ipcplugins.finished',
buildid: '20110528184045',
platform: 'macosx64',
slave: 'talos-r3-snow-036',
rev: '5d7b5f2ea603',
result: 0,
tree: 'mozilla-central',
pusher: 'masayuki@d-toybox.com' }
// failure
@sdwilsh
sdwilsh / gist:972707
Created May 14, 2011 22:34
Script to generate hg commands to push a set of changes to the try server
let changes = [
/* changes go here */
];
let commands = [];
changes.forEach(function(cset) {
commands.push("hg qpop -a");
commands.push("hg update -C " + cset);
commands.push("hg qpush");
commands.push("hg identify >> pushes.txt");
commands.push("hg push -f try");
@sdwilsh
sdwilsh / csv.js
Created May 13, 2011 18:55
Generates csv output for the runs
// If running this from Scratchpad, the context must be https://hg.mozilla.org/
let changesets = [
];
let url = "http://graphs.mozilla.org/api/test/runs/revisions?" + changesets.map(function(cset) {
return "revision=" + cset;
}).join("&");
let req = new XMLHttpRequest();
req.open("GET", url, false);
req.send(null);
let result = JSON.parse(req.responseText).revisions;