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
| 'use strict'; | |
| /* | |
| * Execution | |
| */ | |
| var repo = getRepository() | |
| var users = repo.addGroup('users', ['firstName', 'lastName', 'email']) | |
| log(repo.listGroups()) // => ['users'] |
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
| /** Sends an email. | |
| * Usage: | |
| var message = { | |
| server: 'smtp.office365.com', | |
| port: 25, // Don't include the port if you are targeting office365 | |
| username: '[email protected]', | |
| password: 'secret', | |
| usessl: true, // Set to true if you are targeting office365 | |
| headers: { 'X-Custom': 'value' } | |
| from: '[email protected]', |
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
| /* | |
| * main.js | |
| * Copyright (C) 2016 romgrk <romgrk@Romgrk-ARCH> | |
| * | |
| * Distributed under terms of the MIT license. | |
| */ | |
| 'use strict'; | |
| const serviceWorker = navigator.serviceWorker; |
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
| /* | |
| * jscript.js | |
| */ | |
| 'use strict'; | |
| /* | |
| * Workflow | |
| */ | |
| function get(name) { return Watch.getVariable(name); } |
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
| // Sends a GET request to the workflow | |
| const sendWorkflowRequest = (config, method, params) => { | |
| return new Promise((resolve, reject) => { | |
| // Construct request options | |
| var options = { | |
| host: config.urls.planetPress, | |
| port: config.urls.planetPressPort, | |
| path: `/${method}?${querystring.stringify(params)}`, | |
| method: 'GET' | |
| }; |
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 Service = require('node-windows').Service; | |
| var appPath = require('path').join(__dirname,'\\bin\\www'); | |
| // Create a new service object | |
| var svc = new Service({ | |
| name:'PlanetPress NodeJS API', | |
| description: 'PlanetPress API service for quote and orders Web interface.', | |
| script: appPath | |
| }); |
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
| /* | |
| * tag_metadata_pagecount.js | |
| * | |
| * Set each metadata document 'ExtraData' field to its page count. | |
| */ | |
| extendArray() | |
| /* | |
| * Retrieve the auth_token, then make the REST call to retrieve the content sets. |
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
| /* | |
| * rest.js | |
| */ | |
| var api = new RestAPI('ol-admin', 'secret') | |
| var contentSets = api.contentsets.list() | |
| log(contentSets) |
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
| #s Configuration file for dircolors, a utility to help you set the | |
| # LS_COLORS environment variable used by GNU ls with the --color option. | |
| # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
| # Copying and distribution of this file, with or without modification, | |
| # are permitted provided the copyright notice and this notice are preserved. | |
| # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the | |
| # slackware version of dircolors) are recognized but ignored. | |
| # Below, there should be one TERM entry for each termtype that is colorizable | |
| # TERM entries {{{ | |
| TERM Eterm |
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
| 'use strict'; | |
| ((function() { | |
| var exports = {}; | |
| window.cotg = exports; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| /* |