This file has been truncated, but you can view the full file.
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 NODE_REQUIRE = (...e) => { | |
const B = require('path'); | |
switch (e[0]) { | |
case '@servicenow-cli/devsnc-library-appsee-web-sdk-wrapper': | |
return require(B.resolve(__dirname, 'devsnc-library-appsee-web-sdk-wrapper/index.js')); | |
case '@tectonic/babel-plugin-generate-driver-metadata': | |
return require(B.resolve(__dirname, '../../plugin/generate-driver-metadata/index.js')); | |
case '@tectonic/babel-plugin-modify-annotation-calls': | |
return require(B.resolve(__dirname, '../../plugin/modify-annotation-calls/index.js')); |
This file has been truncated, but you can view the full file.
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 license information please see index.js.LICENSE.txt */ | |
const NODE_REQUIRE = (...re) => { | |
const ie = require('path'); | |
switch (re[0]) { | |
case '@servicenow-cli/devsnc-library-appsee-web-sdk-wrapper': | |
return require(ie.resolve(__dirname, 'devsnc-library-appsee-web-sdk-wrapper/index.js')); | |
case '@tectonic/babel-plugin-generate-driver-metadata': | |
return require(ie.resolve(__dirname, '../../plugin/generate-driver-metadata/index.js')); | |
case '@tectonic/babel-plugin-modify-annotation-calls': |
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
javascript:(function() { | |
try { | |
const a = document.createElement('a'); | |
const dom = document.querySelector('main > .flex-1 > .h-full .flex'); | |
const template = document.createElement('template'); | |
const title = document.title; | |
template.innerHTML = dom.innerHTML; | |
['.items-end', 'img', 'svg', 'button', ':empty'].forEach(selector => { | |
template.content.querySelectorAll(selector).forEach(node => { | |
node.remove(); |
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
/** | |
* @license | |
* Copyright (c) 2020 ServiceNow, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
* sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
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 getAsyncImport = async () => { | |
try { | |
const dynamicThing = 'faCoffee'; | |
const something = await import(`/${dynamicThing}`); | |
console.log(something); | |
} catch (error) { | |
alert('it did not import properly!'); | |
} | |
}; |
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
objArray.sort(function(a, b) { | |
var textA = a.DepartmentName.toUpperCase(); | |
var textB = b.DepartmentName.toUpperCase(); | |
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | |
}); |
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
buildJson(function (data) { | |
// Calculate total nodes, max label length | |
var totalNodes = 0; | |
var maxLabelLength = 0; | |
// variables for drag/drop | |
var selectedNode = null; | |
var draggingNode = null; | |
// panning variables | |
var panSpeed = 200; |
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
[ | |
[{ | |
"label": "Data Analytics/ Databases", | |
"id": -32, | |
"department": "IT", | |
"parent": null | |
}, { | |
"label": "Data Infrastructure", | |
"id": -43, | |
"department": "IT", |
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
{ | |
"name": "flare", | |
"children": [{ | |
"name": "analytics", | |
"children": [{ | |
"name": "cluster", | |
"children": [{ | |
"name": "AgglomerativeCluster", | |
"size": 3938 | |
}, { |
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
var function_array = { | |
// sets the dates for creation of a new document | |
"setDateTimes" : function (req, res, next) { | |
var tempDate = new Date().toISOString(); | |
req.body.created_date = tempDate; | |
req.body.updated_date = tempDate; | |
next(); | |
}, | |
// sets the created by and updated by for creation of a new document |
NewerOlder