There are many way to do it. Some of them are more efficient that others. Here are some paths to explore.
- Create EC2 instance
- ssh in EC2
- Install everything (git, node, mongo)
- Open the inbound to the world
- Create a route53 and link it to you DNS
// implementation, I can only put only fruits inside (by polymorphism) | |
public class Container<T extends Fruit> { | |
private String containerId; | |
private T fruit; | |
public String containerId() { | |
return eventId; | |
} |
import org.junit.jupiter.api.Test; | |
import reactor.core.publisher.Mono; | |
import java.time.Duration; | |
/** | |
* | |
*/ | |
public class TestBidon { |
There are many way to do it. Some of them are more efficient that others. Here are some paths to explore.
val str = "my-name_is"; | |
val result = str.replace("(-.)|(_.)".toRegex()) { | |
it.value[1].toString() | |
.toUpperCase() | |
}.capitalize() | |
println(result) |
@Component | |
@Order(-2) | |
class GlobalErrorWebExceptionHandler( | |
private val configurer: ServerCodecConfigurer, | |
private val exceptionAdvisor: ExceptionAdvisor, | |
private val errorAttributes: ErrorAttributes, | |
private val resourceProperties: ResourceProperties, | |
private val applicationContext: ApplicationContext) | |
: AbstractErrorWebExceptionHandler(errorAttributes, resourceProperties, applicationContext) { |
class Rectangle { | |
constructor(hauteur, largeur, color) { | |
this.hauteur = hauteur; | |
this.largeur = largeur; | |
this.color = color; | |
} | |
} | |
class RectangleBuilder { | |
withHauteur(hauteur) { |
Find more here: Utiliser le programme d’installation du SDK Google Cloud
# On mac
curl https://sdk.cloud.google.com | bash
Find more here: Guide de démarrage rapide | Documentation Kubernetes Engine
It is largely inspired by kscript. The idea is to leverage the scripting abilities of javascript using Deno. I feel that scripting can be so much fun with Deno
as:
Node
Just exploring how deno Rust plugins can be used. !!! warning the feature is still instable!!!
Clone the deno source & go to deno/test_plugin
The repo is structure as following:
test_plugin
├── Cargo.toml