| Command | Description |
|---|---|
Show |
Show script value |
ShowVars |
Show variables on object. You can optionally specified a papyrus variable or script to filter with [player|sv] |
ShowGlobalVars |
Show all global variables. |
ShowQuestVars |
Show quest variables. You can optionally specified a papyrus variable or script to filter with [svq QuestID] |
ShowQuests |
List quests. |
ShowQuestAliases |
Show quest aliases. [ShowQuestAliases QuestID] |
SetPapyrusQuestVar |
Set a Papyrus property on the specified quest. |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
The following content shows a general structure of a web app, it can be changed based on the different conventions of web frameworks.
- templates (views) # Template files
Photo by Ricardo Gomez Angel on Unsplash
This gist is a collection of common patterns I've personally used here and there with Custom Elements.
These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.
08/16/17 by Sergey Grebenshchikov
This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.
GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.
| #!/bin/bash | |
| set -e | |
| command -v jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed (see: https://stedolan.github.io/jq/). Aborting."; exit 1; } | |
| command -v curl >/dev/null 2>&1 || { echo >&2 "I require curl but it's not installed (see: https://curl.haxx.se/). Aborting."; exit 1; } | |
| # Auth API Notes: http://forum.micasaverde.com/index.php/topic,24942.45.html | |
| # New Server domains listing: http://forum.micasaverde.com/index.php/topic,25859.0.html | |
| # Example implementations: | |
| # https://github.com/rickbassham/vera/blob/master/vera_test.py | |
| # https://github.com/amg0/ALTUI/blob/master/Remote/VeraloginAction.php |
| local rblt = require("RBLuaTest") | |
| rbLuaTest = rblt.rbLuaTest | |
| luup.register_handler("rbLuaTest","LuaTest") | |
| HOUSE_MODE_PLUGGIN = 40 | |
| HOME = '1' | |
| AWAY = '2' | |
| NIGHT = '3' | |
| VACATION = '4' |
| #!/usr/bin/env bash | |
| usage="Usage: $(basename "$0") region stack-name [aws-cli-opts] | |
| where: | |
| region - the AWS region | |
| stack-name - the stack name | |
| aws-cli-opts - extra options passed directly to create-stack/update-stack | |
| " |
| /*<?php | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |
| { | |
| "name": "project-name", | |
| "description": "Template for static sites", | |
| "version": "1.0.0", | |
| "homepage": "http://www.project-name.com", | |
| "author": { | |
| "name": "Adam Reis", | |
| "url": "http://adam.reis.nz" | |
| }, | |
| "license": "UNLICENSED", |