Skip to content

Instantly share code, notes, and snippets.

View gpaulbr's full-sized avatar
🌎
Focusing

Gabriel Paul gpaulbr

🌎
Focusing
  • PUCRS
  • São Paulo, Brazil
View GitHub Profile
#coding: utf-8
class Frô:
def __init__(self, petalaLargura, petalaAltura, sepalaLargura, sepalaAltura, nome):
self.petalaAltura = petalaLargura
self.petalaAltura = petalaAltura
self.sepalaLargura = sepalaLargura
self.sepalaAltura = sepalaAltura
self.nome = nome
https://try.kotlinlang.org/#/Examples/Basic%20syntax%20walk-through/Use%20when/Use%20when.kt
https://try.kotlinlang.org/#/Examples/Basic%20syntax%20walk-through/Use%20when/Use%20when.kt
http://www.99-bottles-of-beer.net/language-kotlin-2901.html
when (obj) {
1 -> println("One")
"Hello" -> println("Greeting")
is Long -> println("Long")
server.get('/estabelecimentos/:id/especialidades', (req, res, next) => {
const url = 'http://mobile-aceite.tcu.gov.br:80/mapa-da-saude/rest/especialidades/unidade/' + req.params.id
let batatinha = req.params.id
axios.get(url)
.then(data => {
console.log(data)
res.send(response.data)
})
})