Skip to content

Instantly share code, notes, and snippets.

View andrewnicols's full-sized avatar

Andrew Lyons andrewnicols

  • Moodle Pty Ltd
  • Perth, Australia
View GitHub Profile
{"title":"Arithmetic Quiz","language":"und","mainLibrary":"H5P.ArithmeticQuiz","embedTypes":["div"],"license":"U","preloadedDependencies":[{"machineName":"H5P.ArithmeticQuiz","majorVersion":"1","minorVersion":"1"},{"machineName":"H5P.SoundJS","majorVersion":"1","minorVersion":"0"},{"machineName":"Odometer","majorVersion":"1","minorVersion":"0"},{"machineName":"H5P.JoubelUI","majorVersion":"1","minorVersion":"3"},{"machineName":"H5P.Transition","majorVersion":"1","minorVersion":"0"},{"machineName":"Drop","majorVersion":"1","minorVersion":"0"},{"machineName":"Tether","majorVersion":"1","minorVersion":"0"},{"machineName":"FontAwesome","majorVersion":"4","minorVersion":"5"},{"machineName":"H5P.FontIcons","majorVersion":"1","minorVersion":"0"}]}
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
SELECT ue.userid AS userid,
e.courseid AS courseid,
f.id as forumid,
SUM(CASE WHEN p.parent = 0 THEN 1 ELSE 0 END) AS postcount,
SUM(CASE WHEN p.parent != 0 THEN 1 ELSE 0 END) AS replycount,
u.id,u.picture,u.firstname,u.lastname,u.firstnamephonetic,u.lastnamephonetic,u.middlename,u.alternatename,u.imagealt,u.email,
SUM(CASE WHEN att.attcount IS NULL THEN 0 ELSE att.attcount END) AS attachmentcount,
MIN(p.created) AS earliestpost,
MAX(p.created) AS latestpost, CASE WHEN tmp.viewcount IS NOT NULL THEN tmp.viewcount ELSE 0 END AS viewcount, SUM(CASE WHEN p.wordcount IS NOT NULL THEN p.wordcount ELSE 0 END) AS wordcount, SUM(CASE WHEN p.charcount IS NOT NULL THEN p.charcount ELSE 0 END) AS charcount
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
course/amd/build/repository.min.js.map | Bin 5808 -> 5738 bytes
course/amd/src/repository.js | 17 +++++++----------
mod/forum/db/upgrade.php | 1 -
rating/lib.php | 5 ++---
version.php | 2 +-
5 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/course/amd/build/repository.min.js.map b/course/amd/build/repository.min.js.map
index 6522f91e228..1e49dc2d9b0 100644
Binary files a/course/amd/build/repository.min.js.map and b/course/amd/build/repository.min.js.map differ
############################################################################
# History control
############################################################################
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
export HISTSIZE=2000
export HISTFILESIZE=2000
ulimit -Sn 45000
const renderUserContent = (index, user) => {
const moduleRegion = graderContainer.querySelector(Selectors.region.moduleReplace);
const loadingPromise = addIconToContainerWithPromise(moduleRegion);
config.getContentForUserId(user.id)
.then(html, js) => {
loadingPromise.resolve();
Templates.replaceNodeContents(moduleRegion, html, js);
#!/bin/bash
# This is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
<?php
class foo {
public function test($abc) {
}
}
class bar extends foo {
public function test(string $abc): void {
}