This file contains 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
/* | |
* Saloimex | |
* Faris Han, 2020 | |
*/ | |
class Saloimex { | |
/** | |
* Saloimex | |
* @constructor | |
*/ | |
constructor(key) { |
This file contains 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
// Credits: Svelte (from Svelte's Tutorial) | |
function join(strings) { | |
if (strings.length === 1) return strings[0]; | |
return `${strings.slice(0, -1).join(', ')} and ${strings[strings.length - 1]}`; | |
} |
This file contains 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
/** | |
* Custom Breakpoints | |
*/ | |
const screens = { | |
sm: '375px', | |
md: '768px', | |
mdp: '900px', | |
lg: '1024px', | |
xl: '1280px', | |
'2xl': '1440px', |
This file contains 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
// [JS - serialize form] | |
function serialize(form) { | |
if (!form || form.nodeName !== "FORM") { | |
return; | |
} | |
var i, j, q = []; | |
for (i = form.elements.length - 1; i >= 0; i = i - 1) { | |
if (form.elements[i].name === "") { | |
continue; | |
} |
This file contains 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
define(() => { | |
function objectToTable(object = {}, header = {}, orientation = 'landscape') { | |
const $table = document.createElement('table') | |
let $thead | |
if (orientation === 'landscape') { | |
$thead = document.createElement('thead') | |
$table.appendChild($thead) | |
} |
This file contains 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
define(function () { | |
function Terminal($root, options = {}) { | |
if (!document) { | |
console.error("Cannot find HTML document.") | |
return | |
} | |
this.$root = $root || document.body | |
this.debug = options.debug || false | |
this.nodeMap = { |
This file contains 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
/* AMD Module for RequireJS */ | |
define(function () { | |
function PubSub() { | |
const self = this | |
let subscriberCount = 0 | |
this.eventMap = {} | |
this.subscribe = function (key, callback) { | |
const token = `${generateUID()}_${++subscriberCount}` |
This file contains 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
Aerospace Engineering,Aesthetics,Agricultural Science,Algebra,Anatomy,Anthropology,Archeology,Architectural Engineering,Architecture,Art History,Astronomy,Astrophysics,Biochemistry,Bioinformatics,Biology,Biomedical Engineering,Biotechnology,Botany,Business,Business Administration,Calculus,Cancer Biology,Cell Biology,Ceramics,Chemical Engineering,Chemistry,Civics,Civil Engineering,Classical Studies,Climate Science,Cognitive Science,Commerce,Commercial Law,Communication Studies,Comparative Literature,Comparative Religion,Computer Science,Creative Writing,Criminology,Cultural Studies,Dance,Dental Science,Development Studies,Earth Science,Ecology,Econometrics,Economics,Education,Education Studies,Electrical Engineering,Electronic Engineering,Emergency Medicine,Energy Engineering,Engineering,English Literature,Environmental Economics,Environmental Engineering,Environmental Science,Ethics,Fashion Design,Film Studies,Finance,Gender Studies,Genetics,Geography,Geology,Geometry,Gerontology,Global Studies,Graphic Design |
This file contains 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 fs = require('fs') | |
/* Configuration */ | |
const INPUT_PATH = './disciplines.txt' | |
const OUTPUT_PATH = './disciplines.json' | |
const ENCODING = 'utf-8' | |
const MINIFIED = false | |
const SPACE = 2 | |
const REPLACER = undefined |
This file contains 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 fs = require('fs') | |
/* Configuration */ | |
const INPUT_PATH = './disciplines.txt' | |
const OUTPUT_PATH = './disciplines.mermaid.txt' | |
const ENCODING = 'utf-8' | |
const MINIFIED = false | |
const SPACE = 2 | |
const REPLACER = undefined |
OlderNewer