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
<template> | |
<section id="courses-searched"> | |
<div class="course" v-for="(course, index) in courses.slice(0,10)" :key="index"> | |
<button | |
@click="course.show=!course.show"> | |
X | |
</button> | |
<div v-if="course.show" class="course"> | |
<div |
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
<?php | |
// assumes existence of 'config.php' | |
require_once 'config.php'; | |
/** | |
* Class Database | |
*/ | |
class Database | |
{ |
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 inquirer = require('inquirer'); | |
const fs = require('fs'); | |
const jsonPath = __dirname + '/tasks.json'; | |
let tasks = JSON.parse(fs.readFileSync(jsonPath, 'utf8')); | |
function run() { | |
inquirer.prompt([ | |
{ | |
name: 'action', |
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 _customElementsDefine = window.customElements.define; | |
window.customElements.define = (name, cl, conf) => { | |
if (!customElements.get(name)) { | |
_customElementsDefine.call(window.customElements, name, cl, conf); | |
} | |
}; |
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 tabSystem = { | |
init(){ | |
document.querySelectorAll('.tabs-menu').forEach(tabMenu => { | |
Array.from(tabMenu.children).forEach((child, ind) => { | |
child.addEventListener('click', () => { | |
tabSystem.toggle(child.dataset.target); | |
}); | |
if(child.className.includes('is-active')){ | |
tabSystem.toggle(child.dataset.target); | |
} |
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 | |
lo.id, | |
"Envision" as academy, | |
competency.competency, | |
lo.name, | |
csfv.value, | |
co.id as co_id, | |
co.name as co_name | |
FROM learning_objective lo |
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
<?php | |
define('path', __DIR__); | |
// (composer require neoan3-apps/ops) | |
require_once path . '/vendor/autoload.php'; | |
function logger($input) | |
{ | |
file_put_contents(__DIR__ . '/log.json', json_encode($input)); | |
} |
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
// this file is in pages/blog/ | |
<template> | |
<div> | |
<div class="container" v-if="display==='overview'"> | |
<div v-for="post in result"> | |
<a :href="'/blog/'+post.slug">{{post.name}}</a> | |
</div> | |
</div> | |
<div class="container" v-if="display==='post'"> | |
<h1 class="title">{{result.name}}</h1> |
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 | |
co.id AS co_id, | |
co.name AS Content_Object, | |
contact.value AS Client_Contact, | |
lo.name AS core_lo | |
FROM content_object_customer_specific_field_value AS contact | |
JOIN content_object AS co ON contact.content_object_id = co.id | |
AND HEX(contact.customer_specific_field_id) LIKE "%0FF6E9CDC81411E99B6602313DCACE58%" |
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 | |
academy.name as academy, | |
GROUP_CONCAT(DISTINCT competency.name SEPARATOR ', ') as competency, | |
core_lo.name as lo, | |
co.name as co, | |
csfv.value as proficiency, | |
lo_non.name as non_core_lo, | |
other_co.name as other_cos | |
FROM learning_objective_group academy |