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
Replace this file, with the below contents: Data/systems/dcc/templates/actor-sheet-warrior.html | |
This will add Lay on Hands to all Warrior sheets. The only difference between this file and the default existing file is this chunk: | |
<div data-skill="layOnHands" class="split-50-50"> | |
<label class="skill-check rollable" for="system.details.layOnHands.value">{{localize "DCC.LayOnHands"}}</label> | |
<input type="text" id="system.skills.layOnHands.value" name="system.skills.layOnHands.value" value="{{system.skills.layOnHands.value}}" data-dtype="String"/> | |
</div> | |
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 | |
~~~~~~~ |
Testing upload | |
#!/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}") |
#!/bin/sh | |
2 # Copyright 2012 The Go Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style | |
4 # license that can be found in the LICENSE file. | |
5 | |
6 # git gofmt pre-commit hook | |
7 # | |
8 # To use, store as .git/hooks/pre-commit inside your repository and make sure | |
9 # it has execute permissions. | |
10 # |
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'); | |
} | |
); |
### Keybase proof | |
I hereby claim: | |
* I am bplus on github. | |
* I am bryannelson (https://keybase.io/bryannelson) on keybase. | |
* I have a public key ASA3Olo1gBnuoWE_xz1zwYD7qRMQODsyszw4vSx6rLhZywo | |
To claim this, I am signing this object: |