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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Survey</title> | |
<style> | |
div{margin-block-start: 1rem;} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>sort dom nodes</title> | |
</head> | |
<body> | |
<p>Some typical markup. Input + Label, then a break. Super responsive, super accessible. We want to present them in random order but can't change the source because it is being injected by a black-box process as a template. Vanilla javascript can help us.</p> |
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
{{>theme_mytheme/inc_start}} | |
<div id="page" class="container-fluid"> | |
{{{ output.full_header }}} | |
<div id="page-content" class="row"> | |
<div id="region-main-box" class="col-12"> | |
{{#hasregionmainsettingsmenu}} | |
<div id="region-main-settings-menu" class="d-print-none"> | |
<div> {{{ output.region_main_settings_menu }}} </div> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Send xAPI statement</title> | |
<script type="text/javascript" src="xAPIWrapper-master/lib/cryptojs_v3.1.2.js"></script> | |
<script type="text/javascript" src="xAPIWrapper-master/lib/utf8-text-encoding.js"></script> | |
<script type="text/javascript" src="xAPIWrapper-master/src/activitytypes.js"></script> | |
<script type="text/javascript" src="xAPIWrapper-master/src/verbs.js"></script> |
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
<?php | |
/* | |
You have markdown files in nested folders which comtain | |
--01.getting-started | |
| | | |
| +--02.finalisation | |
| | | | |
| | docs.md | |
| | picture.png |
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
<?php | |
header("content-type:text/plain"); | |
$root = realpath("."); | |
$ar = array_diff(scandir($root), array('.','..')); | |
foreach ($ar as $fold) { | |
$rootPath = "{$root}/{$fold}"; | |
if (is_dir($rootPath)) { | |
$zip = new ZipArchive(); | |
$zip->open("{$rootPath}.zip", ZipArchive::CREATE | ZipArchive::OVERWRITE); | |
$files = new RecursiveIteratorIterator( |
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
<?php | |
// there's more to this file than this: | |
public function get_content() | |
{ | |
global $CFG, $DB, $USER; | |
if (!is_siteadmin()) { | |
return null; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>argh!</title> | |
<script type="text/javascript"> | |
message = "The quick brown 🦊 jumps over the lazy 🐶 "; | |
function step() { | |
message = message.substr(1) + message.substr(0,1); | |
document.title = message.substr(0,15); |
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
<?php | |
require('../../config.php'); // adjust as needed | |
require_once($CFG->dirroot.'/course/format/lib.php'); | |
require_once($CFG->libdir.'/modinfolib.php'); | |
$courseid = 26; // the numerical id of the course we are looking in | |
$index = 1; | |
$course = get_course($courseId); // in course/format/lib.php | |
$modinfo = get_fast_modinfo($course); // in lib/modinfolib.php |
NewerOlder