Skip to content

Instantly share code, notes, and snippets.

View dazzaji's full-sized avatar

Dazza Greenwood dazzaji

View GitHub Profile
@dazzaji
dazzaji / TextGist
Last active August 29, 2015 14:22
Gist-Roadmap.md
# Text
- [ ] Item 1
- [ ] Item 2
# More Text
@dazzaji
dazzaji / rfc3339.js
Created October 5, 2015 02:08 — forked from pjdietz/rfc3339.js
Format a local date as an RFC 3339 date with timezone
function rfc3339(d) {
function pad(n) {
return n < 10 ? "0" + n : n;
}
function timezoneOffset(offset) {
var sign;
if (offset === 0) {
return "Z";
@dazzaji
dazzaji / rfc3339.swift
Created October 5, 2015 02:08 — forked from kristopherjohnson/rfc3339.swift
Parsing or formatting an RFC 3339 timestamp using NSDateFormatter
import Foundation
/// Parse RFC 3339 date string to NSDate
///
/// :param: rfc3339DateTimeString string with format "yyyy-MM-ddTHH:mm:ssZ"
/// :returns: NSDate, or nil if string cannot be parsed
public func dateForRFC3339DateTimeString(rfc3339DateTimeString: String) -> NSDate? {
let formatter = getThreadLocalRFC3339DateFormatter()
return formatter.dateFromString(rfc3339DateTimeString)
}
// http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
jQuery.githubUserRepositories = function(username, callback) {
jQuery.getJSON("https://api.github.com/users/" + username + "/repos?callback=?", callback);
}
jQuery.fn.loadRepositores = function(username) {
this.html("<span>Querying GitHub for repositories...</span>");
var target = this;

Call to Action

  • Joi scenario re meaning of digital transfers (eg the date when digital instrument no longer negotiable)
  • Sandy scenario re adaptive algorythmic laws (eg model tumed as cases adjudicated and capable of simulations)

Standard Header/Metadata

  • Location: LegalCite-HumanURL-NetworkEndpoint
  • Time: Datestamp-Events-Status
  • Topic: Name-EncodedTitleChapter-DefinedTerms
Verifying that +dazza is my blockchain ID. https://onename.com/dazza
@dazzaji
dazzaji / keybase.md
Created July 17, 2016 21:32
keybase.md

Keybase proof

I hereby claim:

  • I am dazzaji on github.
  • I am civics (https://keybase.io/civics) on keybase.
  • I have a public key ASAFRkWZ0hBPy6i-SBiQIc39N7KNpCNUiXg8zmHkl1nW4Qo

To claim this, I am signing this object:

@dazzaji
dazzaji / keyUtils.py
Last active February 23, 2017 23:11 — forked from dims/keyUtils.py
import ecdsa
import ecdsa.der
import ecdsa.util
import hashlib
import os
import re
import struct
b58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
{
"address": "mkqCZE3X1Yab7pHkg3FnVNvaYSx8p8N3Zs",
"signature": "H8ZHg+Ar9/g9BasGL34+5tlTfxjf2iP98PVuw2+GQjPEU8/yAd8Uxketw1wKHinyI1h+USXikTE9Yzfnw3BVlrw=",
"hashedPayload": "01ed76be5d3eb72220fe41e730d126234c2a1d65ec208d539224c72804282c00"
}