Skip to content

Instantly share code, notes, and snippets.

Andrew Nicols andrewnicols

Block or report user

Report or block andrewnicols

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View run.sh
#!/bin/bash
WDURL="http://localhost:9515";
#RESPONSE=`curl -s -d '{"capabilities": {"firstMatch": [{"acceptInsecureCerts": false, "browserName": "chrome"}]}}' "${WDURL}/session"`
RESPONSE=`curl -s -d '{"capabilities": {"firstMatch": [{"acceptInsecureCerts": false, "browserName": "chrome", "goog:chromeOptions": {"args": ["-headless"]}}]}}' "${WDURL}/session"`
SESSIONID=`echo "${RESPONSE}" | python3 -c "import sys, json; print(json.load(sys.stdin)['value']['sessionId'])"`
echo "Setting URL:"
curl -d '{"url":"http:\/\/localhost\/date.html"}' "${WDURL}/session/${SESSIONID}/url"
View geckoheadless.sh
#~/bin/bash
set -e
docker run \
--rm \
-d \
--name selenium \
-p 4444:4444 \
-e START_XVFB=false \
View library.json
{
"title": "Interactive Video",
"description": "Put texts, tasks and other medias on top of your video.",
"license": "MIT",
"contentType": "Media",
"majorVersion": 1,
"minorVersion": 20,
"patchVersion": 4,
"machineName": "H5P.InteractiveVideo",
"author": "Joubel",
View library.json
{
"title": "Interactive Video",
"description": "Put texts, tasks and other medias on top of your video.",
"license": "MIT",
"contentType": "Media",
"majorVersion": 1,
"minorVersion": 20,
"patchVersion": 4,
"machineName": "H5P.InteractiveVideo",
"author": "Joubel",
View h5p.json
{"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"}]}
View autoloader.php
<?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
View autoloader.php
<?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
View gist:3317fdeb168006575b794835efbb0aa4
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
View grader.js
// 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
View 66074.diff
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
You can’t perform that action at this time.