This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xe | |
API_KEY="YOUR_API_KEY_GOES_HERE" | |
FPS="10" | |
VLC_PATH="/Applications/VLC.app/Contents/MacOS/VLC" | |
# I don't know how this'll behave on multimon, so you might want to hard-code. | |
# INRES='1440x900' | |
INRES=$(osascript -e 'tell application "Finder" to get bounds of window of desktop'|sed 's/, /x/g'|cut -f3- -dx) | |
OUTRES='1280x800' | |
# You can change this to record microphone or something else, from man soxformat (under coreaudio): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/any.hpp> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/fusion/include/std_pair.hpp> | |
#include <vector> | |
#include <map> | |
#include <iostream> | |
namespace json { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***INITIALIZATION*** | |
1. We assume this starts with some "God" CA that has a publicly trusted certificate. This is the root of the entire system. | |
2. God CA signs "Alice" certificate, authorizing Alice to act as a market player. Alice is assigned 100u of currency. | |
3. God CA signs "Bob" certificate, authorizing Bob to act as a market player. Bob is assigned 100u of currency. | |
4. God CA signs "Charlie" certificate, authorizing Charlie to act as a market player. Charlie is assigned 100u of currency. | |
***1st MARKET ACTIONS*** | |
1. "Alice" signs "Anna" and gifts "anna" 25u. To sign anna, alice requires signatures of two witnesses. | |
a. Alice asks Bob and pays Bob a fee of 50% of the transaction (12.5u). | |
b. Alice asks Charlie and pays Charlie a fee of 50% of the transaction (12.5u). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'eventmachine' | |
module Telnet | |
# :stopdoc: | |
IAC = 255.chr # "\377" # "\xff" # interpret as command | |
DONT = 254.chr # "\376" # "\xfe" # you are not to use option | |
DO = 253.chr # "\375" # "\xfd" # please, you use option | |
WONT = 252.chr # "\374" # "\xfc" # I won't use option | |
WILL = 251.chr # "\373" # "\xfb" # I will use option |