Skip to content

Instantly share code, notes, and snippets.

View Fannon's full-sized avatar

Simon Heimler Fannon

View GitHub Profile
{
"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;
}
@Fannon
Fannon / gist:c3cac2c968de7ea320b5
Created July 26, 2014 08:20
MediaWiki Forms Width Patch
/** Semantic Forms Style **/
.formtable .createboxInput,
.formtable .mandatoryField,
.formtable textarea {
min-width: 204px;
width: 504px;
max-width: 100%;
}
.select2-choices,
@Fannon
Fannon / gist:dc6a8e9cb58ae7cd6249
Created July 26, 2014 08:40
SemanticForms.css
/**
* The main CSS file for the Semantic Forms extension.
*/
/* Override "width: 100%" setting in standard MediaWiki skins */
textarea.createboxInput {
/* width: auto;*/
}
textarea.mandatoryField {
width: auto;