This is a repository with links I've discovered on the Web. Enjoy.
For more, have a look at:
😎 Curated list of awesome lists https://awesome.re
| async function fetchLectures(teacher) { | |
| const allClasses = (await fetch("https://adeetc.thothapp.com/api/v1/classes").then(res => res.json())).classes | |
| const teacherClasses = allClasses.filter(c => c.mainTeacherShortName === teacher) | |
| const teacherClassesDetails = await Promise.all( teacherClasses.map(c => fetch(c._links.self).then(r => r.json())) ) | |
| const teacherClassesLectures = await Promise.all( teacherClassesDetails.map(klass => fetch(klass._links.lectures).then(r => r.json()).then(lectures => ({ klass, lectures }))) ) | |
| const detailedInfo = await Promise.all(teacherClassesLectures.map(klassInfo => Promise.all(klassInfo.lectures.classLectures.map(l => fetch(l._links.self).then(r => r.json()))).then(lectures => ({ klass: klassInfo.klass, lectures })))) | |
| return detailedInfo | |
| } | |
| const teacher = "Carlos Guedes" | 
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "type": "object", | |
| "title": "TokenStatusResult", | |
| "description": "Status about a given token", | |
| "properties": { | |
| "active": { | |
| "type": "boolean", | |
| "title": "Active", | |
| "description": "True if the token is active and therefore, usabale to reset the password" | 
This is a repository with links I've discovered on the Web. Enjoy.
For more, have a look at:
😎 Curated list of awesome lists https://awesome.re
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Huge Canvas Image Donwload</title> | |
| </head> | |
| <body> | |
| <div id="content"> | |
| <h2>Huge Canvas | 
| [NoInterfaceObject] | |
| interface XMLHttpRequestEventTarget : EventTarget { | |
| // event handlers | |
| [TreatNonCallableAsNull] attribute Function? onloadstart; | |
| [TreatNonCallableAsNull] attribute Function? onprogress; | |
| [TreatNonCallableAsNull] attribute Function? onabort; | |
| [TreatNonCallableAsNull] attribute Function? onerror; | |
| [TreatNonCallableAsNull] attribute Function? onload; | |
| [TreatNonCallableAsNull] attribute Function? ontimeout; | |
| [TreatNonCallableAsNull] attribute Function? onloadend; | 
| function handler() { | |
| show("readyState: " + this.readyState); | |
| if(this.readyState == this.DONE) { | |
| if(this.status == 200) | |
| show(this.responseText); | |
| } | |
| } | |
| var client = new XMLHttpRequest(); | |
| client.onreadystatechange = handler; | 
| function findSubmissions(extractedDir, done) { | |
| var glob = require("glob"); | |
| var fileSearchPatterns = ["**/*.zip", "**/*.rar"]; | |
| log.info("Finding code to evaluate in " + extractedDir + " with patterns " + fileSearchPatterns); | |
| async.map(fileSearchPatterns, findFilesWithPattern, function(err, filesArray) { | |
| if (err) return log.errorAndDone("Error finding code to evaluate", err, done); | |
| var allFiles = Array.prototype.concat.apply([], filesArray); | |
| log.dir("Search found " + allFiles.length + " files: ", allFiles); |