Skip to content

Instantly share code, notes, and snippets.

View Fannon's full-sized avatar

Simon Heimler Fannon

View GitHub Profile
@Fannon
Fannon / Monokai-FannonEdition.tmTheme
Created March 1, 2012 08:20
Sublime Theme: Monokai FannonEdition
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai FannonEd</string>
<key>settings</key>
<array>
<dict>
[
{
"keys": [
"f1"
],
"args": {},
"command": "zen_as_you_type",
"context": [
{
"operand": "source.css - source.css.embedded, text.xml, text.html -source -meta.tag, meta.scope.between-tag-pair.html -source",
{
"printrequests":[
{
"label":"",
"typeid":"_wpg",
"mode":2
},
{
"label":"Vorname",
{
"printrequests":{
"":{
"label":"",
"typeid":"_wpg"
},
"Vorname":{
"label":"Vorname",
"typeid":"_txt"
@Fannon
Fannon / gist:3307353eb2a00ccc01e2
Last active August 29, 2015 14:01
JSON Schema $extends
// Abstract Shape Schema
{
"id": "_Shape",
"type": "object",
"properties": {
"x": {"type": "number"},
"y": {"type": "number"}
},
"required": ["x", "y"]
@Fannon
Fannon / gist:e718531f22f9791e1cfc
Created May 15, 2014 16:25
tv4.asyncFetchSchemas Usage
tv4.asyncFetchSchemas('/model/Circle.json', function() {
tv4.getSchemaUris();
// ["/model/Circle.json"]
tv4.getSchemaMap();
// {
// "/model/Circle.json": {
// "$ref": "/model/_Shape.json",
// "id": "/model/Circle",
<h4>Data via SPARQL Query</h4>
<plastic id="table-sparql-query" style="height: 300px; width: 100%;">
<script class="plastic-query" type="application/sparql-query" data-query-url="http://dbpedia.org/sparql">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX type: <http://dbpedia.org/class/yago/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT ?country_name ?population
this.$displayEl = $(this.$el.find('.plastic-js-display')[0]);
var html = '<pre class="raw-data">' + JSON.stringify(this.elAttr.data.raw, false, 4) + '</code></pre>';
this.$displayEl.html(html);
@Fannon
Fannon / gist:31acdce9be1b80737f01
Last active August 29, 2015 14:04
MediaWiki Buttons
/** Buttons Style **/
input[type=button], input[type=submit] {
border-radius: 3px;
border: none;
background: #128FBD;
color: #FFF;
padding: 6px 8px;
cursor: pointer;
user-select: none;
}
@Fannon
Fannon / gist:9553b3087f00131121a4
Created July 26, 2014 08:17
MediaWiki Headertabs
/** HEADER TABS STYLE **/
.ui-tabs .ui-tabs-panel {
padding: 4px 10px;
}
.ui-widget-header {
background: none;
}
.ui-widget-content {
background: #FAFAFA;
}