Skip to content

Instantly share code, notes, and snippets.

View davidgs's full-sized avatar

David G. Simmons davidgs

View GitHub Profile
@davidgs
davidgs / knob-dial-react.markdown
Created February 11, 2023 16:38
Knob / Dial (React)
@davidgs
davidgs / main.tour
Created June 17, 2022 17:43
DotNet-TestScript
{
"$schema": "https://aka.ms/codetour-schema",
"title": "5: DotNet",
"steps": [
{
"file": "C-Sharp/README.md",
"description": "If all you're interested in is a high-level overview of everything, this [README](./README.md) should probably be enough to get you started. \n\nIf you're interested in how the code works and how it's structured, continue this tour. ",
"line": 3,
"contents": "# The C# version of the worker\n\nThis is just like the other workers, except it's written in C#.\n\n## Installation\n\n $ git clone\n $ cd C-Sharp\n $ dotnet build\n\n## Running\n\n $ cd C-Sharp\n $ dotnet run\n\n## Output\n\n % dotnet run\n 2022-06-02 13:55:55.1651 | DEBUG | Zeebe.Client.Impl.Worker.JobWorker | Job worker (hostname) for job type DoMathTask has been opened.\n 2022-06-02 13:55:55.5789 | TRACE | Zeebe.Client.Impl.Builder.CamundaCloudTokenProvider | Read cached access token from /Users/davidgs/.zeebe/credentials\n 2022-06-02 13:55:55.7803 | TRACE | Zeebe.
@davidgs
davidgs / main.tour
Created June 17, 2022 17:43
Node-TestScript
{
"$schema": "https://aka.ms/codetour-schema",
"title": "4: Node",
"nextTour": "DotNet",
"steps": [
{
"file": "NodeJS/README.md",
"description": "These are the basic commands to run this Task Worker, but we will get back to this after we go through the code. ",
"line": 11,
"contents": "# The NodeJS version of the worker\n\nThis is just like the other workers, except it's written in NodeJS.\n\n## Installation\n\n $ git clone\n $ cd NodeJS\n $ npm install\n\n## Running\n\n $ cd NodeJS\n $ npm install\n $ node test-script\n\n## Output\n\n % node test-script\n Starting Camunda Cloud Zeebe ScriptWorker\n ===================================\n 14:00:56.071 | zeebe | INFO: Authenticating client with Camunda Cloud...\n Handling job: 2251799814893972\n Incoming variables: { count: 0, add: 0 }\n Job Complete: { count: 0, add: 0 }\n Handling job: 2251799814893982\n Incoming variables: { add: 4, count: 0 }\n Job Complete: { add: 4,
@davidgs
davidgs / main.tour
Created June 17, 2022 17:42
Java-TestScript
{
"$schema": "https://aka.ms/codetour-schema",
"title": "3: Java",
"nextTour": "Node",
"steps": [
{
"file": "Java/README.md",
"description": "In this tour we will step through the Java process for handling a Task Worker for Camunda Platform 8. \n\nIf all you're interested in is a high-level overview, this [README](Java/README.md) should suffice. \n\nWe will next step through all the Java code to examine how it all fits together and works to execute a task for Camunda Platform 8.",
"line": 3,
"contents": "# The Java version of the worker\n\nThis is just like the other workers, except it's written in Java.\n\n## Installation\n\n $ git clone\n $ cd Java\n $ mvn clean install\n\n## Running\n\n $ cd Java\n $ mvn exec:java\n\n## Output\n\n % mvn exec:java\n [INFO] Scanning for projects...\n [INFO]\n [INFO] -------< io.camunda.testscript:camunda-platform-testscript-java >-------\n [INFO] Building camunda-platform-testscript-java 1.0-SNAPSHOT\n [INF
@davidgs
davidgs / main.tour
Created June 17, 2022 17:42
Go-ScriptTest
{
"$schema": "https://aka.ms/codetour-schema",
"title": "2: GoLang",
"nextTour": "Java",
"steps": [
{
"file": "Golang/README.md",
"description": "Most of the information you will need is in this README file, but next we will step through the Go code in detail so that you can understand what's happening. ",
"line": 3,
"contents": "# The Go version of the worker\n\nThis is just like the other workers, except it's written in Go.\n\n## Installation\n\n $ git clone\n $ cd Golang\n $ go mod tidy\n\n## Running\n\n $ cd Golang\n $ go run test-script.go\n\n## Output\n\n % go run test-script.go\n Starting Camunda Cloud Zeebe ScriptWorker\n ===================================\n handleC8Job\n {Add:0 Count:0}\n {Add:0 Count:0}\n Complete job 2251799814889100 of type DoMathTask\n Successfully completed job\n handleC8Job\n {Add:4 Count:0}\n {Add:4 Count:4}\n Complete job 2251799814889110 of type DoMathTask\n Successfully completed job\
const data = {
"variables": {
"direction": {
"value": "DESC",
"type": "String"
},
"items": {
"value": "50",
"type": "String"
@davidgs
davidgs / full-calendar-bootstrap-4.markdown
Created June 25, 2021 14:23
full calendar bootstrap 4

Keybase proof

I hereby claim:

  • I am davidgs on github.
  • I am davidgs (https://keybase.io/davidgs) on keybase.
  • I have a public key ASAaoa55hH6Qpv4JDEs2Irvfc3OvOoupoKLrkpH1jv0zgAo

To claim this, I am signing this object: