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
| (select*from(select(sleep(2)))a) |
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
| let WORDCOUNT = 0, | |
| CHARACTERCOUNT = 0, | |
| CHARACTERCOUNTWITHSPACES = 0; | |
| const ADAPT = requirejs( 'coreJS/adapt' ), | |
| COURSE = ADAPT.course, | |
| CONTENTOBJECTS = ADAPT.contentObjects._byId, | |
| BLOCKS = ADAPT.blocks._byId, | |
| ARTICLES = ADAPT.articles._byId, | |
| COMPONENTS = ADAPT.components._byId, |
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
| for( let co in ( requirejs( 'coreJS/adapt' ) ).contentObjects._byAdaptID ) { | |
| console.log( co + ': ' + ( ( requirejs( 'coreJS/adapt' ) ).contentObjects._byAdaptID[co][0].attributes._isComplete ? 'COMPLETE ' : 'INCOMPLETE' ) + ', ' + ( ( requirejs( 'coreJS/adapt' ) ).contentObjects._byAdaptID[co][0].attributes._isOptional ? 'OPTIONAL ' : 'NOT OPTIONAL' ) ); | |
| } | |
| for( let a in ( requirejs( 'coreJS/adapt' ) ).articles._byAdaptID ) { | |
| console.log( a + ': ' + ( ( requirejs( 'coreJS/adapt' ) ).articles._byAdaptID[a][0].attributes._isComplete ? 'COMPLETE ' : 'INCOMPLETE' ) + ', ' + ( ( requirejs( 'coreJS/adapt' ) ).articles._byAdaptID[a][0].attributes._isOptional ? 'OPTIONAL ' : 'NOT OPTIONAL' ) ); | |
| } | |
| for( let b in ( requirejs( 'coreJS/adapt' ) ).blocks._byAdaptID ) { | |
| console.log( b + ': ' + ( ( requirejs( 'coreJS/adapt' ) ).blocks._byAdaptID[b][0].attributes._isComplete ? 'COMPLETE ' : 'INCOMPLETE' ) + ', ' + ( ( requirejs( 'coreJS/adapt' ) ).blocks._byAdaptID[b][0].attributes._isOptional ? 'OPTIONAL ' : 'NOT |
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
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |
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
| Pull all submodules, even if not initialised | |
| $ git submodule update --init --recursive | |
| Add a course as a submodule | |
| $ git submodule add [repo URL] src/courses/[course name] | |
| View statuses of all submodules | |
| $ git submodule status | |
| Pull all course submodules (assuming default of master branch) |