The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
- Node.JS
- NPM
- Express
function getAttributeObjects(characterObj,attributeArray) { | |
// can pass array of attribute strings or a single attribute string along with an associated character | |
// returns those attributes as an object array or returns false if they do not exist on the passed character. | |
// get the passed attribute name array from the character object and test if they are defined | |
if (characterObj != undefined ) { | |
var attributeObjArray = new Array(); | |
if (!(attributeArray instanceof Array)) { |
/* | |
========================================== | |
Roll20 Character Sheet Attribute Utilities | |
========================================== | |
!stats | |
!stats Atribute1, Attribute2, ... | |
!attrib attribute|newValue | |
!attrib | |
~~~~~~~ |
#!/bin/bash | |
session_name= | |
session_pre= | |
if [[ "$1" ]]; then | |
session_name="-t $1" | |
session_pre="$1" | |
fi | |
session_path=$(tmux list-panes -t $session_pre:1 -F "#{pane_start_path}") |
The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
//oauth2 auth | |
chrome.identity.getAuthToken( | |
{'interactive': true}, | |
function(){ | |
//load Google's javascript client libraries | |
window.gapi_onload = authorize; | |
loadScript('https://apis.google.com/js/client.js'); | |
} | |
); |