Skip to content

Instantly share code, notes, and snippets.

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.service.adb.enable=1
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=GWK74
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $(basename $0) <commit>" >&2
exit 1
fi
commit=$1
git difftool $commit
# This module intentionally minimizes dependencies to mitigate breakage risk.
# Subset of Syslog's numerical severity codes (RFC 3164, Table 2)
SEVERITY =
ERROR: 3
WARN: 4
INFO: 6
DEBUG: 7
# Configuration
@brandonbloom
brandonbloom / gist:3214278
Created July 31, 2012 06:34 — forked from halgari/gist:3213067
Async example in clojure-py
(ns async-test
(:require time)
(:require urllib))
;; See https://github.com/halgari/clojure-py/issues/135
(defmacro time [expr]
`(let [start# (time/clock)
ret# ~expr]
(prn (str "Elapsed time: " (py/round (* (- (time/clock) start#) 1000) 3) " msecs"))
ret#))
" Toggles colorcolumn
function! ToggleColorColumn()
if exists('+colorcolumn')
if &colorcolumn > 0
set colorcolumn=
else
set colorcolumn=80
endif
else
if !exists("w:columnmatch")
From 812a18d8aaf9e2fc3db4e61bfb7e8b9b23201ba6 Mon Sep 17 00:00:00 2001
From: Brandon Bloom <brandon@brandonbloom.name>
Date: Sat, 27 Oct 2012 14:03:33 -0700
Subject: [PATCH] Extract emit-provide function
---
src/clj/cljs/compiler.clj | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/clj/cljs/compiler.clj b/src/clj/cljs/compiler.clj
(defn- unquote? [form]
(and (seq? form) (= (first form) 'clojure.core/unquote)))
(defn- unquote-splicing? [form]
(and (seq? form) (= (first form) 'clojure.core/unquote-splicing)))
(defn syntax-quote-fn [form]
(cond
(unquote? form) (second form)
(unquote-splicing? form) (throw (Exception. "splice not in list"))
From 0fec110cd81437c0baf5ca6e494ce35fe5b069e9 Mon Sep 17 00:00:00 2001
From: Brandon Bloom <brandon@brandonbloom.name>
Date: Wed, 28 Nov 2012 15:35:41 -0800
Subject: [PATCH] Include file/line in error messages from analyzer
---
src/clj/cljs/analyzer.clj | 102 +++++++++++++++++++++++++---------------------
src/clj/cljs/compiler.clj | 2 +-
2 files changed, 57 insertions(+), 47 deletions(-)
(defproject testpig "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
[com.cemerick/piggieback "0.0.2"]
[org.clojure/tools.nrepl "0.2.0-SNAPSHOT"]]
:repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]})
feature 'Contact Form', ->
before ->
goto '/contact/'
scenario 'Send message', ->
fill email: 'test@example.com'
fill message: 'Message!'
click button: 'Send'
has text: 'Thanks for your message!'