Skip to content

Instantly share code, notes, and snippets.

View christopheralcock's full-sized avatar

Christopher Alcock christopheralcock

View GitHub Profile
@christopheralcock
christopheralcock / gist:ec235d8e361c25797b77fb4281b04f4f
Created August 12, 2019 12:24
ontology-authoring-patterns.txt
The following is a set of rules/guidance about ontology authoring patterns that I shared with my colleagues as part of my handover from working in Parliament, published here for their reference
Booleans suck. Most of the time when you see a Boolean, what you’re really dealing with is a subclass
We classify by use, not by explicit statements, wherever possible. This helps Wojciech write nicer code when orchestrating
We use rdfs:isDefinedBy so that the schema query - api.parliament.uk/query/schema has something to work with
We add sentence-case rdfs:label to our ontology for readability on the html browser
//set context
var audioContext = new AudioContext()
var speakers = audioContext.destination
//call play function
play(0, 3, .5)
play(1, 10, .5)
play(2, 15, .5)
//play function
function play (delay, pitch, duration) {
@christopheralcock
christopheralcock / angular-sinatra_on_heroku.md
Last active September 11, 2015 11:10 — forked from giusepped/angular-sinatra_on_heroku.md
Deploying your angular/sinatra app on heroku

DEPLOYING YOUR ANGULAR/SINATRA APP ON HEROKU

  • $ mkdir public create a public folder

  • $ mv bower_components public/bower_components (don't forget to change the gitignore file!!) you need to move your bower components to the public

  • folder and also any stylesheets or anything you will want to require in your http.

  • Create Gemfile

source 'https://rubygems.org'