Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am avram on github.
  • I am ajlyon (https://keybase.io/ajlyon) on keybase.
  • I have a public key whose fingerprint is 5F32 D929 ED3A 9184 F0DA EDEB 1017 F829 DC6D A724

To claim this, I am signing this object:

@avram
avram / reviews.coffee
Last active August 29, 2015 14:11
reviews.coffee
"dependencies": {
"cheerio": "0.18.0",
"request": "2.50.0"
}
@avram
avram / andevcon-gradle.html
Last active August 29, 2015 14:01
Gradle Automation - AnDevCon
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(http://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
body {
@avram
avram / gist:7014243
Last active December 25, 2015 17:39
class MyActivity extends Activity {
private Thread myWorker = new Thread() {
public void run() {
URL url = new URL("http://reddit.com/story");
url.openConnection();
String body = url.getBody();
myView.post(new Runnable() { public void run() {myView.setText(body)} });
}
}
@avram
avram / Core Library Project
Last active December 25, 2015 05:49
Gradle files
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6+'
}
}
{
"id" : "user/08031520133324451689/state/com.google/starred",
"title" : "Avram's starred items in Google Reader",
"author" : "Avram",
"updated" : 1274539669,
"direction" : "ltr",
"items" : [ {
"isReadStateLocked" : true,
"crawlTimeMsec" : "1274539669172",
"timestampUsec" : "1274539669172997",
@avram
avram / gist:3299518
Created August 8, 2012 22:46 — forked from anonymous/gist:2523336
Changing author info
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]
@avram
avram / gist:3299514
Created August 8, 2012 22:46 — forked from anonymous/gist:2523336
Changing author info
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]
@avram
avram / RIS.js
Created November 26, 2011 07:17
{
"translatorID": "32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7",
"label": "RIS",
"creator": "Simon Kornblith",
"target": "ris",
"minVersion": "2.1.3",
"maxVersion": "",
"priority": 100,
"displayOptions": {
"exportCharset": "UTF-8",
@avram
avram / gist:1240306
Created September 25, 2011 06:32
stacktrace - db hygiene
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): java.lang.RuntimeException: java.lang.IllegalStateException: attempt to re-open an already-closed object: android.database.sqlite.SQLiteDatabase (database = /data/data/com.gimranov.zandy.client/databases/Zotero)
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): at com.gimranov.zandy.client.XMLResponseParser.parse(XMLResponseParser.java:262)
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): at com.gimranov.zandy.client.task.ZoteroAPITask.issue(ZoteroAPITask.java:377)
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): at com.gimranov.zandy.client.task.ZoteroAPITask.doFetch(ZoteroAPITask.java:121)
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): at com.gimranov.zandy.client.task.ZoteroAPITask.doInBackground(ZoteroAPITask.java:98)
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): at com.gimranov.zandy.client.task.ZoteroAPITask.doInBackground(ZoteroAPITask.java:1)
E/com.gimranov.zandy.client.task.ZoteroAPITask(16691): at android