This file contains hidden or 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
| # This workflow will build a Java project with Maven | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: GraalVM Native Image build | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: [ '*' ] |
This file contains hidden or 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] | |
| name = "multipass" | |
| version = "0.1.0" | |
| authors = ["linux_china <libing.chen@gmail.com>"] | |
| edition = "2018" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| clap = { version = "3.0.0-beta.2", features = ["yaml"] } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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!") |