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
complete -c multipass -n "__fish_use_subcommand" -s h -l help -d 'Prints help information' | |
complete -c multipass -n "__fish_use_subcommand" -s V -l version -d 'Prints version information' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "delete" -d 'Delete instances' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "exec" -d 'Run a command on an instance' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "find" -d 'Display available images to create instances from' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "get" -d 'Get a configuration setting' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "help" -d 'Display help about a command' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "info" -d 'Display information about instances' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "launch" -d 'Create and start an Ubuntu instance' | |
complete -c multipass -n "__fish_use_subcommand" -f -a "list" -d 'List all available instances' |
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
//usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.slf4j:slf4j-simple:1.7.30 | |
//DEPS org.projectlombok:lombok:1.18.12 | |
//DEPS com.alibaba.rsocket:alibaba-rsocket-core:1.0.0-SNAPSHOT | |
import com.alibaba.rsocket.encoding.JsonUtils; | |
import com.alibaba.rsocket.invocation.RSocketRemoteServiceBuilder; | |
import com.alibaba.rsocket.metadata.RSocketMimeType; | |
import com.alibaba.rsocket.upstream.UpstreamCluster; | |
import com.alibaba.rsocket.upstream.UpstreamManager; |
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
{ | |
"name": "spring-boot-java", | |
"repository": "https://github.com/tgm-templates/spring-boot-java", | |
"description": "Spring Boot App with Java", | |
"variables": [ | |
{ | |
"name": "groupId", | |
"description": "Maven groupId" | |
}, | |
{ |
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
//usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS org.springframework.boot:spring-boot-starter:2.3.4.RELEASE | |
package demo; | |
import org.springframework.boot.CommandLineRunner; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
@SpringBootApplication |
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
/** | |
* cloudflare KV Namespace | |
*/ | |
class KVNameSpace { | |
/** | |
* Write key-value pairs | |
* @param {string} key - key | |
* @param {(string|ArrayBuffer|ReadableStream)} value - value | |
* @param {{[expiration]: number, [expirationTtl]: number, [metadata]: {}}} [options] - putting options | |
* @return {Promise} |
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
function wait(ms: number):Promise<undefined> { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
await wait(1000); |
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
/* | |
* | |
* Apache License | |
* Version 2.0, January 2004 | |
* http://www.apache.org/licenses/ | |
* | |
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
* | |
* 1. Definitions. | |
* |
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
console.log("Welcome to Deno!") |
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
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.reactive.HandlerMapping; | |
import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping; | |
import org.springframework.web.reactive.socket.WebSocketHandler; | |
import org.springframework.web.reactive.socket.server.support.WebSocketHandlerAdapter; | |
import java.util.HashMap; | |
import java.util.Map; |
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
WASM_MODULE = cpp17 | |
CC = em++ | |
CXXFLAGS = --bind -O3 -x c++ -std=c++17 -s ALLOW_MEMORY_GROWTH=1 -s 'MALLOC="emmalloc"' | |
.PHONY : all clean | |
all: $(WASM_MODULE).wasm ## Build all Wasm | |
$(WASM_MODULE).wasm: $(WASM_MODULE).cpp ## Compile cpp17.wasm | |
$(CC) $(CXXFLAGS) -o $(WASM_MODULE).js $(WASM_MODULE).cpp |