Skip to content

Instantly share code, notes, and snippets.

View jamesaoverton's full-sized avatar

James A. Overton jamesaoverton

View GitHub Profile
<ivy-module version="2.0">
<info organisation="org.obi-ontology" module="build"/>
<dependencies>
<dependency org="commons-cli" name="commons-cli" rev="1.2" />
<dependency org="net.sourceforge.owlapi" name="owlapi-apibinding" rev="3.4.5" />
<dependency org="com.hermit-reasoner" name="org.semanticweb.hermit" rev="1.3.8.1" />
<dependency org="au.com.bytecode" name="opencsv" rev="2.4" />
<dependency org="org.apache.jena" name="jena-arq" rev="2.12.0" />
<dependency org="org.apache.jena" name="jena-tdb" rev="1.1.0" />
</dependencies>
@jamesaoverton
jamesaoverton / my-solarized.js
Last active October 16, 2020 20:37
Customized Solarized Light theme for Blink Shell
t.prefs_.set('color-palette-overrides',["#002831", "#d11c24", "#738a05", "#a57706", "#2176c7", "#c61c6f", "#259286", "#eae3cb", "#001e27", "#bd3613", "#475b62", "#536870", "#708284", "#5956ba", "#819090", "#ffffff"]);
t.prefs_.set('foreground-color', "#333333");
t.prefs_.set('background-color', "#ffffff");
t.prefs_.set('cursor-color', 'rgba(83,104,112,0.2)');
#!/usr/bin/env python3
#
# Generate a tree representation
# from SPARQL result listing ?subject and ?parent.
# The CSV representation is for IEDB Finder TREE tables.
# The JSON representation works with inspire-tree.
import argparse, csv, re, sys
from collections import defaultdict
from io import StringIO
@jamesaoverton
jamesaoverton / tab.rb
Created October 27, 2011 00:37
Jekyll plugin for generating tag index files and directories.
module Jekyll
class TagIndex < Page
def initialize(site, base, dir, tag)
@site = site
@base = base
@dir = dir
@name = 'index.html'
self.process(@name)
@jamesaoverton
jamesaoverton / slim_converter.rb
Created October 25, 2011 19:45
Slim converter for Jekyll.
module Jekyll
require 'slim'
Slim::Engine.set_default_options :pretty => true
class SlimConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /slim/i
@jamesaoverton
jamesaoverton / Rakefile
Created October 25, 2011 19:43
Preprocess Slim layout templates for Jekyll.
require 'rubygems'
require 'slim'
Slim::Engine.set_default_options :pretty => true
desc "Parse .slim layouts, ignoring any YAML front matter."
task :parse_slim do
print "Parsing Slim layouts..."
Find.find('_layouts/slim/') do |filename|
if filename.match(/\.slim\Z/)