Skip to content

Instantly share code, notes, and snippets.

View EduMagnets
English is a language which has great reach and influence; it is taught all over the world under many circumstances. In English-speaking countries, English language teaching has essentially evolved in two broad directions: instruction for people who intend to live there and for those who do not. These divisions have grown firmer as the instructors of these two "industries" have used different terminology, followed distinct training qualifications, formed separate professional associations, and so on. Crucially, these two arms have very different funding structures, public in the former and private in the latter, and to some extent this influences the way schools are established and classes are held. Matters are further complicated by the fact that the United States and the United Kingdom, both major engines of the language, describe these categories in different terms.
@nadavkav
nadavkav / format.php
Created Feb 7, 2015
Multi national AIKEN Moodle quiz question import format
View format.php
<?php // $Id: format.php,v 1.6.2.2 2008/08/15 03:13:39 tjhunt Exp $
////////////////////////////////////////////////////////////////////////////
/// AIKEN FORMAT
///
/// This Moodle class provides all functions necessary to import and export
/// one-correct-answer multiple choice questions in this format:
///
/// תוכן השאלה
/// 1. Choice #1
View theme_theme-name_core_renderer.class
// You can add those two function to your theme core renderer overrides
// inside theme_{theme-name}_core_renderer which is usually inside {theme-name}/renderers/core_renderer.php
//
// It will add a popup (overlay) quick action menu when a Teacher or Admin is clicking a user's picture, anywhere in Moodle.
//
// Security warrning: This is work in progress!!!
//
// See more details here: https://moodle.org/mod/forum/discuss.php?d=261224#p1145963
//
View moodle_user_course_section_module_completion_status.php
// The Following code assumes it get two parameters: $section & $user
// (For any question, ask the Penguin: nadavkav@gmail.com)
$thissection = $modinfo->get_section_info($section);
// Generate array with count of activities in this section:
$sectionmods = array();
$total = 0;
$complete = 0;
$cancomplete = isloggedin() && !isguestuser();
View moodle_config_php_params_4_developers.php
//$CFG->enablecssoptimiser = false;
//$CFG->themedesignermode = 1; // 1 = Theme Designer mode.
// For javascript debugging.
//$CFG->cachejs = false;
//$CFG->yuicomboloading = false;
//$CFG->yuiloglevel = 'debug';
//$CFG->debug = 32767;
// Force a debugging mode regardless the settings in the site administration
View Israeli academic institutes
אוניברסיטת בן גוריון בנגב
אוניברסיטת בר אילן
אוניברסיטת חיפה
אוניברסיטת תל אביב
האוניברסיטה העברית בירושלים
האוניברסיטה הפתוחה
הטכניון- מכון טכנולוגי לישראל
מכון ויצמן למדע
==
אפקה- המכללה האקדמית להנדסה בתל אביב
View h5p_moodle_filter_wip.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,
View moodle_get_image_tags.php
<?php
// Use clarifai web service to tag iamges
require('../../config.php');
require_once($CFG->dirroot . "/lib/filelib.php");
$curl = new curl();
//$c->setopt(array('CURLOPT_TIMEOUT' => 3, 'CURLOPT_CONNECTTIMEOUT' => 3));
$image_to_tag = optional_param('imageurl', null , PARAM_URL );
if ($image_to_tag) {
$image_url = $image_to_tag;
View moodle-restore-course-backup
------------------------------ backup/restore.php ------------------------------
index ab97369..9c41dc3 100644
@@ -30,6 +30,10 @@ if (is_null($course)) {
$PAGE->set_title($courseshortname . ': ' . get_string('restore'));
$PAGE->set_heading($coursefullname);
+$PAGE->requires->jquery();
+$PAGE->requires->jquery_plugin('ui');
+$PAGE->requires->jquery_plugin('ui-css');
+
View moodle_mod_hvp_editor_scripts_h5peditor-html.js
var H5PEditor = H5PEditor || {};
var ns = H5PEditor;
// Register plugin with CK
//CKEDITOR.plugins.addExternal('base64image', '/var/www/html/moodle-org/master-dev/mod/hvp/editor/ckeditor/plugins/base64image/');
// Tell H5P about the plugin
ns.HtmlAddons = ns.HtmlAddons || {};
ns.HtmlAddons.img = ns.HtmlAddons.img || {};
ns.HtmlAddons.img.base64image = function (config, tags) {