Skip to content

Instantly share code, notes, and snippets.

View compleatang's full-sized avatar

Casey Kuhlman compleatang

View GitHub Profile
@compleatang
compleatang / genesis.json
Last active August 29, 2015 14:15
genesis config for 2gather - @eris-ltd 's youtube dapp
{
"address": "0000000000THISISDOUG",
"pdx": "",
"doug": "Genesis DOUG/gendoug-v3.lll",
"unique": true,
"private-key": "",
"model": "vm",
"no-gendoug": false,
"consensus": "vm",
"difficulty": 17,
# Aliases
alias efa='ipfs_add'
alias efb='ipfs_view'
alias efg='ipfs_get'
alias efs='ipfs_get_save'
# alias gss='git status -s'
# compdef _git gss=git-status
# Add a file to IPFS cache
Verifying that +compleatang is my openname (Bitcoin username). https://onename.com/compleatang
require_relative "test_helper"
require "open-uri"
require "net/http"
class EmojiTest < Blog::Test
def test_no_emoji
posts.each do |post|
content = File.read(post)
refute_match /:[a-zA-Z0-9_]+:/, content,
This file has been truncated, but you can view the full file.
{
"address": "0000000000THISISDOUG",
"pdx": "",
"doug": "Genesis DOUG/gendoug-v2.lll",
"unique": true,
"private-key": "",
"model": "",
"no-gendoug": false,
"consensus": "",
"difficulty": 15,
#!/usr/bin/env ruby
require 'json'
this_account = {}
accounts = []
def makeaccount
b = %w(a b c d e f 1 2 3 4 5 6 7 8 9 0)
tmp = '0x'
40.times do
{
"address": "0000000000THISISDOUG",
"pdx": "",
"doug": "",
"unique": true,
"private-key": "",
"model": "",
"no-gendoug": false,
"consensus": "",
"difficulty": 15,
---
# Eris
### Participatory Architecture for Social Scientists (and Everyone Else)
---
### Ideas Alone Are Not That Powerful
@compleatang
compleatang / render_lmd.rb
Created August 6, 2014 15:19
render lmd contract
def build_contract params
contract_file = File.join( File.dirname(__FILE__), 'public', 'consulting_agreement.lmd' )
values = { "client_name" => "#{params[:name]}", "date" => "#{Time.new.strftime('%B %d, %Y')}", "standard" => "false", "express" => "false", "additional" => "false", "hourly" => "false" }
case params[:package]
when 'standard'
values["standard"] = "true"
when 'express'
values["express"] = "true"
when 'additional'
values["additional"] = "true"
(if (< (DIV @0x40 BLrepfrac) minpunish)
{
(if (> minpunish @0x40)
{
;Can't afford the punishment
[0x0]"addstrike"
[0x20]@0x100
[0x40]maxstrikes
(call (gass) @@REP 0 0x0 0x40 0x0 0x0)