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
/** | |
Decode a php serialized value to json. This function only supports basic | |
data types: | |
- arrays (will always become a json object) | |
- booleans | |
- integers | |
- floats | |
- strings | |
- NULL |
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
#/bin/sh | |
# | |
# Don't change the following lines unless you know what you are doing | |
# They execute the config options starting with 'do_' below | |
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \ | |
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x - | |
# | |
############# INSTRUCTIONS ########### | |
# | |
# Change following options starting with 'do_' to suit your configuration |
This file has been truncated, but you can view the full file.
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
// ==UserScript== | |
// @name bedifferent-editing-toolkit | |
// @description Editing toolkit for designers working on the CQUni BeDifferent Moodle Platform | |
// @version 1.0.3 | |
// @grant none | |
// @noframes | |
// @include https://bedifferent.cqu.edu.au/* | |
// @include https://u-bedifferent.catalyst-au.net/* | |
// @include https://staging-bedifferent.catalyst-au.net/* | |
// ==/UserScript== |
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
/** | |
* Create an Element from string using template tag for insertion into DOM | |
* @param {string} html | |
* @return {Element} | |
*/ | |
function createElement(html) { | |
if(html === null || html === undefined) | |
return null ; | |
const element = window.document.createElement('template') ; | |
element.innerHTML = html ; |
OlderNewer