Skip to content

Instantly share code, notes, and snippets.

View dconroy's full-sized avatar

David Conroy dconroy

View GitHub Profile

Unofficial OpenTable API

This project was created for one purpose — to make OpenTable data easily accesible to developers. No longer do you have to download XLS file, parse it and insert into your app's database. That shit is annoying.

It is absolutely free and open for everyone to use.

Created by @dan_sosedoff while drinking beers with @alwaysunday in Austin, TX.

Usage

@dconroy
dconroy / stt.sh
Last active August 29, 2015 14:04
stt.sh
#DaveConroy.com
#7/4//14
#stt.sh
#part 1
echo "Recording your Speech (Ctrl+C to Transcribe)"
arecord -D plughw:0,0 -f cd -t wav -d 0 -q -r 16000 | flac - -s -f --best --sample-rate 16000 -o daveconroy.flac;
#part 2
python text-to-translate.py
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-pip mplayer flac python2.7-dev libcurl4-gnutls-dev
sudo pip install requests pycurl
import StringIO
import os.path
import pycurl
#variables
filename = 'daveconroy.flac'
key = 'xxx'
url = 'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-us&key=' + key
Verifying that +dconroy is my blockchain ID. https://onename.com/dconroy
@dconroy
dconroy / gist:797c5509a608bcb2a575
Created December 15, 2015 07:20
Dual Escrow in Ethereum
contract Purchase
{
uint public value;
address public seller;
address public buyer;
enum State { Created, Locked, Inactive }
State public state;
function Purchase()
{
seller = msg.sender;
@dconroy
dconroy / gist:ac9ed30c02a53f3ae884
Created December 15, 2015 08:41
double party escrow
// This contract can be used to hold money while an item is in transit
// during purchase.
// This protocol is a variation of a protocol by Oleg Andreev which is
// described at
// https://gatecoin.com/blog/2015/10/blockchain2-disrupting-disrutors/
//
// Assume Bob wants to buy an item worth x Ether from Alice.
// Alice creates this contract and and sends 2x Ether to the contract
// together with its creation transaction.
// If Bob does not react, Alice can get her money back.
@dconroy
dconroy / Purchase.sol
Created March 2, 2017 16:22 — forked from chriseth/Purchase.sol
Purchase
// This contract can be used to hold money while an item is in transit
// during purchase.
// This protocol is a variation of a protocol by Oleg Andreev which is
// described at
// https://gatecoin.com/blog/2015/10/blockchain2-disrupting-disrutors/
//
// Assume Bob wants to buy an item worth x Ether from Alice.
// Alice creates this contract and and sends 2x Ether to the contract
// together with its creation transaction.
// If Bob does not react, Alice can get her money back.
Verifying my Blockstack ID is secured with the address 12hhLJsYxzX11wAfuBWkV7ZMZ7VkmSySCX https://explorer.blockstack.org/address/12hhLJsYxzX11wAfuBWkV7ZMZ7VkmSySCX

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a