Skip to content

Instantly share code, notes, and snippets.

View kayaelle's full-sized avatar

Kerri Lemoie kayaelle

  • MIT DIgital Credentials Consortium (DCC)
  • X @kayaelle
View GitHub Profile
@kayaelle
kayaelle / issuerAccreditation-2.json
Last active September 13, 2016 20:32
OBEE Issuer Accreditation Extension Example 2
{
"@context": "https://w3id.org/openbadges/v1",
"type": "Issuer",
"id": "https://cccs.credly.com/organization.json",
"name": "Colorado Community College System",
"image": "https://cccs.credly.com/assets/images/logo.png",
"url": "https://cccs.credly.com",
"email": "example-email@cccs.credly.com",
"extensions:IssuerAccreditation": [{
"@context":"https://openbadgespec.org/extensions/issuerAccreditation/context.json",
@kayaelle
kayaelle / issuerAccreditation-1.json
Last active September 13, 2016 20:31
OBEE Issuer Accreditation Extension Example 1
{
"@context": "https://w3id.org/openbadges/v1",
"type": "Issuer",
"id": "https://cccs.credly.com/organization.json",
"name": "Colorado Community College System",
"image": "https://cccs.credly.com/assets/images/logo.png",
"url": "https://cccs.credly.com",
"email": "example-email@cccs.credly.com",
"extensions:IssuerAccreditation": {
"@context":"https://openbadgespec.org/extensions/issuerAccreditationExtensions/context.json",
Verifying that +kayaelle is my blockchain ID. https://onename.com/kayaelle
@kayaelle
kayaelle / Setup.md
Created November 9, 2015 13:46 — forked from suvozy/Setup.md
Setup AWS EC2 and RDS (php5.5, apache2.4, mysql5.5, phpmyadmin)
@kayaelle
kayaelle / taxonomy_extension_ex.json
Last active October 8, 2015 14:18
Example of Open Badges Taxonomy Extension
/* Implementation in a badge class */
{
"taxonomyExtensions:casraiEducationHistoryTaxonomy": {
"@context":"http://url-to-extension-context.json",
"type": ["Extension", "taxonomyExtensions:casraiEducationHistoryTaxonomy"],
"ids": [1,3]
}
}
@kayaelle
kayaelle / ledger.js
Created June 22, 2015 11:47
Process ledger to return final balance by name or balance on specified date for name
var ledgerDateMap = {};
/*
Parses ledger data into JSON obj and sorts by date
*/
function parseLedger(ledgerData) {
var preArr=ledgerData.split(' '), ledgerArr = [];
function sortByDate(a,b) {
@kayaelle
kayaelle / geocoordinates-extension-schema.json
Created May 29, 2015 14:43
GeoCoordinates Extension Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "GeoCoordinates",
"description": "An extension allowing for the addition of the geographic coordinates associated with a badge object. For example, geolocation could represent where a Badge Class is available, where a badge was earned or the location of an issuer. The required description property allows implementers to be more specific about the reason location is included.",
"type": "object",
"properties": {
"description": { "type": "string" },
"geo": {
"type": "object",
"properties": {
@kayaelle
kayaelle / geocordinates-extension-context.json
Created May 29, 2015 13:33
GeoCoordinates Extension Context
{
"@context": {
"obi": "https://w3id.org/openbadges#",
"schema": "http://schema.org/",
"extensions": "https://w3id.org/openbadges/extensions#",
"geo": "schema:geo",
"elevation": "schema:elevation",
"latitude": "schema:latitude",
"longitude": "schema:longitude"
},
@kayaelle
kayaelle / geocoordinates_extension_index.md
Created May 29, 2015 13:29
GeoCoordinates Extension index.md

GeoCoordinates

An extension allowing for the addition of the geographic coordinates associated with a badge object. For example, geolocation could represent where a Badge Class is available, where a badge was earned or the location of an issuer. The required description property allows implementers to be more specific about the reason location is included.

{::options parse_block_html="true" /}

Property Type Value Description
@context context IRI https://openbadgespec.org/extensions/geoCoordinatesExtension/context.json
type type IRI array ['Extension', 'extensions:GeoCoordinates']
@kayaelle
kayaelle / geolocation-extension-schema
Last active August 29, 2015 14:09
Structural Validation Schema for Geolocation Extension
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://gist.github.com/kayaelle/c154a671cac8216eee43",
"title": "Geolocation Open Badge Extension",
"description": "This extension provides latitude and longitude coordinates for an Open Badge.",
"type": "object",
"properties": {
"geoLocations": {
"type":"array",
"items": {