Skip to content

Instantly share code, notes, and snippets.

View tbranyen's full-sized avatar

Tim Branyen tbranyen

View GitHub Profile
[oh@Alice][~]% curl 'http://aur.archlinux.org/rpc.php?type=info&arg=cower-git' 2>/dev/null
{"type":"info","results":{"ID":"35888","Name":"cower-git","Version":"20110323-1","CategoryID":"16","Description":"A simple AUR agent with a pretentious name","URL":"http:\/\/github.com\/falconindy\/cower","URLPath":"\/packages\/cower-git\/cower-git.tar.gz","License":"MIT","NumVotes":"22","OutOfDate":"0"}}
[oh@Alice][~]% curl 'http://aur.archlinux.org/rpc.php?type=info&arg=cower-git' 2>/dev/null | json_reformat
{
"type": "info",
"results": {
"ID": "35888",
"Name": "cower-git",
"Version": "20110323-1",
@tobitailor
tobitailor / get_barcode_from_image.js
Created June 1, 2010 19:33
Barcode recognition with JavaScript - Demo: http://bit.ly/djvUoy
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',