Skip to content

Instantly share code, notes, and snippets.

Bi-directional Text USABILITY_ACCESSIBILITY RtlHardcoded Looks for hardcoded left/right constants which could be start/end for bidirectional text
Correctness INSTRUCTION_RELIABILITY InOrMmUsage Looks for use of the mm or in dimensions
Correctness INSTRUCTION_RELIABILITY InconsistentLayout Checks that layout variations are consistent
Correctness INSTRUCTION_RELIABILITY InvalidPackage Finds API accesses to APIs that are not supported in Android
Correctness INSTRUCTION_RELIABILITY LibraryCustomView Flags custom attributes in libraries, which must use the res-auto-namespace instead
Correctness INSTRUCTION_RELIABILITY LocalSuppress Looks for @SuppressLint annotations in locations where it doesn't work for class based checks
Correctness INSTRUCTION_RELIABILITY MissingSuperCall Looks for overriding methods that sh
#!/bin/bash
function alert_user {
echo "${1}"
which -s growlnotify && growlnotify `basename $0` -m "${1}"
}
function exit_ko {
alert_user "${1}"; exit 1
}
@benzonico
benzonico / robot.js
Created December 5, 2012 21:40
bznBot1
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
//robot.ahead(100);
@benzonico
benzonico / robot.js
Created December 5, 2012 21:39
bznBot1
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
//robot.ahead(100);
@benzonico
benzonico / dart.txt
Created November 15, 2012 14:14 — forked from paulmillr/dart.md
Leaked internal google dart email
---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
On November 10th and 11th, a number of Google teams representing a variety
of viewpoints on client-side languages met to agree on a common vision for
the future of Javascript.
@benzonico
benzonico / uri.js
Created April 22, 2012 13:59 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@benzonico
benzonico / FooBarQix.py
Created February 14, 2012 14:58
FooBarQix OneLiner in python : Warmup coding for codestory in the train.
print "\n".join(["".join((lambda x,d:(map(lambda t:{0:t[1]}.get(x%t[0],""),d.items()))+[d.get(int(c),"") for c in str(x)])(n,{3:"foo",5:"bar",7:"qix"})) or str(n) for n in xrange(1,100)])