This file contains hidden or 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
| const { RestController, validator } = require('AppInstance'); | |
| class EmployeeSkillController extends RestController { | |
| constructor() { | |
| super('EmployeeSkill'); | |
| this.modelName = 'EmployeeSkill'; | |
| } | |
| // __processParent(skill, skills) { |
This file contains hidden or 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
| /* | |
| * Taken from http://stackoverflow.com/questions/5867534/how-to-save-canvas-data-to-file/5971674#5971674 | |
| */ | |
| var fs = require('fs'); | |
| // string generated by canvas.toDataURL() | |
| var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0" | |
| + "NAAAAKElEQVQ4jWNgYGD4Twzu6FhFFGYYNXDUwGFpIAk2E4dHDRw1cDgaCAASFOffhEIO" | |
| + "3gAAAABJRU5ErkJggg=="; | |
| // strip off the data: url prefix to get just the base64-encoded bytes |
This file contains hidden or 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
| // Download video | |
| // place this file into directory and run terminal in current directory and type 'node download.js' | |
| const fs = require('fs'); | |
| const https = require('https'); | |
| const host = 'vs1.coursehunters.net'; | |
| let lastNumberOfLessons = 0; | |
| let pathToLessons = ''; | |
| // if lesson has name lesson01.mp4 - set lessonName = 'lesson', |
This file contains hidden or 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
| jwplayer().addButton( | |
| "https://coursehunters.net/images/x1.png", | |
| "x1.25", function() { | |
| videoTag.playbackRate = 1.25; | |
| videoTag.defaultPlaybackRate = 1.25; | |
| if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){ | |
| jwplayer().seek(jwplayer().getPosition()); | |
| } | |
| },"x1.25"); |