Skip to content

Instantly share code, notes, and snippets.

View dazzaji's full-sized avatar

Dazza Greenwood dazzaji

View GitHub Profile

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
// 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;
@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)
}
@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 / TextGist
Last active August 29, 2015 14:22
Gist-Roadmap.md
# Text
- [ ] Item 1
- [ ] Item 2
# More Text
#!/usr/bin/env python3
from urllib import request, parse
import json
base_url = "http://lims.dccouncil.us/_layouts/15/uploader/AdminProxy.aspx/"
keyword_test = ""
# Generic function to get Data from LIMS
def getFromLIMS(view, payload):

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@dazzaji
dazzaji / gist:6239322
Created August 15, 2013 08:47
policy injection
Title: City of Boston Open and Protected Data Policy
Open Data
This policy is authorized by and exists to effectuate the City of Boston Executive Order on to Open Data and Protected Data Sharing. This policy shall remain valid and effective unless and until it is repealed or amended.
This policy is intended and shall be construed to promote realization of the public policy commitment by the City of Boston to Open Government as a key means for enabling public participation, transparency, collaboration and effective government, including by ensuring the availability and use of Open Data, appropriate security and sharing of Protected Data, effective use of Identity and Access Management and engagement of stakeholders and experts toward the achievement of Open Government.
The City of Boston Chief Information Office (CIO), in consultation with City departments, is authorized and directed to develop and issue this policy.
@dazzaji
dazzaji / gist:6238915
Last active December 21, 2015 02:59
PART III, etc. (Test)
<h1> III Approval by Corporation Counsel </h1>
3. Method of approval by the Corporation Counsel of the
City of Boston related to Protected Data disclosed in
accordance with the Policy.
<h1> IV Advisory Panel </h1>
4. [Regional? Cross-Boundary? Metro-Boston? Municipal] Open Government Advisory Panel
<p>
@dazzaji
dazzaji / gist:6238913
Created August 15, 2013 07:27
PART II:
<h1>II Protected Data </h1>
1. Stub: applicable to non-public data, such as health data, educational records and other protected data;
<p>
2. Management of Protected Data, i
<p>