View index.html
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> |
View columns2.mustache
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> |
View index.html
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> |
View index.php
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 |
View zipfolders.php
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( |
View block.php
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; | |
} |
View sample-animation.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tab-title-marquee.html
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); |
View activity.php
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 |
View function.js
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
function blobToDataURL(blob) { | |
return new Promise((fulfill, reject) => { | |
let reader = new FileReader(); | |
reader.onerror = reject; | |
reader.onload = (e) => fulfill(reader.result); | |
reader.readAsDataURL(blob); | |
}) | |
} |
NewerOlder