-
Create project:
mvn io.quarkus:quarkus-maven-plugin:1.9.1.Final:create \
-DprojectGroupId=adamatti \
-DprojectArtifactId=sample \
-DclassName="adamatti.HelloResource" \
-Dpath="/hello"
Create project:
mvn io.quarkus:quarkus-maven-plugin:1.9.1.Final:create \
-DprojectGroupId=adamatti \
-DprojectArtifactId=sample \
-DclassName="adamatti.HelloResource" \
-Dpath="/hello"
const express = require('express'); | |
const app = express(); | |
app.get('/health', function (req, res) { | |
res.send('Hello World!'); | |
}); | |
app.get('/jokenpo', function (req, res) { | |
let jogadaJogador1 = req.query.jogador1; | |
let jogadaJogador2 = req.query.jogador2; |
docker stop $(docker ps -q)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
root = true | |
[*.{groovy,gradle}] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 | |
[Makefile] |
import unittest | |
from sort import BubbleSort | |
class BubbleSortTest(unittest.TestCase): | |
def setUp(self): | |
self.bubble_sort = BubbleSort() | |
def testSortEmptyList(self): | |
lista = [] |
Outros links aqui
const assert = require('assert') | |
it ("primeiro caso - R2", () => { | |
assert.equal ( pula('R2') , 2 ) | |
}) | |
it ("segundo caso - R3", () => { | |
assert.equal ( pula('R3') , 3 ) | |
}) |
class Jokenpo{ | |
def banzai(j1, j2) | |
{ | |
if (j1 == j2) return "empate" | |
[ | |
pedra: "tesoura", | |
papel: "pedra", | |
tesoura :"papel" | |
].find { k, v -> |