This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Semantic Forms Style **/ | |
.formtable .createboxInput, | |
.formtable .mandatoryField, | |
.formtable textarea { | |
min-width: 204px; | |
width: 504px; | |
max-width: 100%; | |
} | |
.select2-choices, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{!-- TABLE DISPLAY --}} | |
{{~#if display_table~}} | |
{| class="wikitable formdata" | |
! colspan="2"|{{name}} | |
{{#each attr}} | |
|- \{{#if: \{{{ {{~@key~}} |}}} | | style="display: none;" \}} | |
| '''{{this.title}}''' | |
{{#if this.smw_arraymap~}} | |
| {{smw_templ_array @key}} | |
{{else~}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Once the document has finished loading, set up everything! | |
jQuery(document).ready(function() { | |
// Check if a SemanticForm is present | |
if ($('#sfForm').length > 0) { | |
jQuery('body').initializeJSElements(); | |
jQuery('.multipleTemplateInstance').initializeJSElements(true); | |
jQuery('.multipleTemplateAdder').click( function() { | |
jQuery(this).addInstance( false ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Clean, light-grey style | |
* @author Simon Heimler 2015 | |
*/ | |
.ui-tabs .ui-tabs-panel { | |
padding: 4px 10px; | |
} | |
.ui-widget-header { | |
background: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$GLOBALS['wgHooks']['onResourceLoaderGetConfigVars'][] = 'exposeGlobalsToJavaScript'; | |
function exposeGlobalsToJavaScript( array &$vars ) { | |
$vars['test_key'] = 'test_value'; | |
die(); | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Intro | |
Thema ist Daten und ihre Metadaten. Zusammengefasst: | |
* JSON selbst ist ein neutralen Datenformat, spezialisiert für serialisation. | |
* Es kann Daten oder Metadaten beinhalten. | |
* Metadatenformate: | |
** JSON Schema kann die Datenstruktur beschreiben ("type") | |
** JSON Schema bringt auch eine sehr einfache Semantik mit sich ("format") z.B. Email, URL | |
** JSON LD ist darauf spezialisiert komplexe Semantik zu erfassen (auch Zusammenhänge zwischen Datensätzen) | |
# JSON Schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JSON Schema Spec | |
{ | |
properties: { | |
// Property order is not ensured! two could come before one, but you'd never know... | |
one: { | |
id: "1" // Which ID is it now? One or 1? | |
type: "string" | |
}, | |
two: { | |
type: "string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; | |
do php ./maintenance/runJobs.php --procs 4 && echo '.'; | |
sleep 3; | |
done |