Skip to content

Instantly share code, notes, and snippets.

View dazzaji's full-sized avatar

Dazza Greenwood dazzaji

View GitHub Profile
#!/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):
@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)
}
@dazzaji
dazzaji / gist:6238830
Created August 15, 2013 07:03
City of Boston Open and Protected Data Policy - Purpose
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.
@dazzaji
dazzaji / gist:6238837
Created August 15, 2013 07:04
City of Boston Open and Protected Data Policy - Delegated Authority to CIO
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:6238908
Last active December 21, 2015 02:59
Part I: City of Boston Open and Protected Data Policy
DRAFT UNREVIEWED City of Boston Open and Protected Data Policy UNREVIEWED DRAFT
<h1>I Open Data </h1>
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.
<p>
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.
@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>
@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:6238826
Created August 15, 2013 07:01
City of Boston Open and Protected Data Policy - Authorization
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.