cat data | go run main.go
View AAA README.md
Download the utilities
Download the utility for your plateform from the GitHub repo
Example for Linux:
curl -L -o - https://github.com/owulveryck/wardleyToGo/releases/download/v0.6.0-newdsl/wardleyToGo_0.6.1-newdsl_Linux_x86_64.tar.gz | tar xzvf -
Generate a file
View figure1.go
This file contains 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
// Stages of evolution | |
package main | |
import ( | |
"image/color" | |
"log" | |
"math" | |
"os" | |
"golang.org/x/image/font/opentype" |
View main.go
This file contains 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
// https://blog.gardeviance.org/2014/07/a-quick-route-to-building-strategy.html | |
package main | |
import ( | |
"html/template" | |
"math/rand" | |
"os" | |
"time" | |
) |
View AAAREADME.md
Generate the map
gvpack -u board.gv map.gv annotations.gv | neato -n -Tsvg > map.svg
Generate the gvmap
echo "digraph {$( cat board.gv annotations.gv <(gvmap -e map.gv) | egrep -v "digraph|^}$")}" | neato -n -Tsvg > withgvmap.svg
View sally.ly
This file contains 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
\version "2.22.2" | |
\header { | |
title = "Sally" | |
composer = "Vasco Rossi" | |
} | |
harmonies = \chordmode { | |
d2 d:maj7 | | |
d1:7 | |
View compute-weeks-left.go
This file contains 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
package cmd | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"net/http" | |
) | |
type TimeTraveler struct { |
View AAA README.md
This is a code snippet that reads an "app.yaml" file on stdin; then it:
- seek for
env_variables
entry in the file - for each
key: value
pair, it looks for an environment variables namedvalue
- if it exists, it substitute the
value
with value found in the environment.
Exemple:
cat app.yaml
View main.go
This file contains 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
package main | |
import ( | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
"path/filepath" | |
"strings" |
View AAA sample.md
Running the sample:
go run . definition.cue
Getting the OpenAPI
❯ curl http://localhost:8181/openapi
returns:
{
NewerOlder