Implementation of tree data structure in TypeScript
- How to search a node in Navigation menu tree?
- how to find all ancestors for a given node?
- Iterable interface for tree data structure
#!/usr/bin/env bash | |
set -e | |
rm -rf ~/.gvm | |
rm -rf ~/.sdkman | |
curl -s get.sdkman.io | bash | |
echo sdkman_auto_answer=true > ~/.sdkman/etc/config |
version: '2.1' | |
services: | |
cassandra: | |
image: cassandra:latest | |
networks: | |
- reactive-network | |
volumes: | |
- cassandra_data:/var/lib/cassandra | |
# - ${PWD}/data/cassandra/data:/var/lib/cassandra |
@NoArg | |
@JsonIgnoreProperties(ignoreUnknown = true) | |
data class Request( | |
var AAA: String?, | |
var BBB : String?, | |
var CCC: String? | |
) { | |
constructor(raw: String): this(null,null, null) { | |
val mapper = jacksonObjectMapper() | |
val request = mapper.readValue<Request>(raw) |
Guide to setup tools to record your terminal and share.
# install asciinema with
brew install asciinema
# start recording with:
asciinema rec
# to finish hit Ctrl-D or type exit.
# start recording to a file
// @ts-ignore | |
const fetch = require('node-fetch'); | |
function delay(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function* getBooksPaged({ q, pageSize, lastPageIndex }) { | |
let currentIndex = 0; | |
let isDone = false; |
ko
is a little unknown gem, lost in the GitHub maze.
ko
is widely used in knative development but somehow very little advocacy has been done around this tool.
It allows you to: