Aplicação estilo "microserviços" ("PetCare")
- Agilidade
- Segurança
┌────────┐
┌───┴──────┐ │
┌────────┐ ┌─────────┐ ┌─┴────────┐ │ │
# Youtube to GIF Converter | |
# (with youtube-dl and ffmpeg) | |
# made by Paulo Elienay II | |
# at paulo [at] pauloelienay.com | |
# imports | |
import sys, os | |
# vars | |
# default vars |
Kotlin +407/ -280 █████████████████████100.0% |
❗️ Opened issue #2 in victoriaquasar/rust-rest-api | |
❗️ Opened issue #1 in victoriaquasar/rust-rest-api | |
❗️ Closed issue #2 in minsk-dev/cutest-cat | |
🗣 Commented on #2 in minsk-dev/cutest-cat | |
❌ Closed PR #1 in minsk-dev/cutest-cat |
@Entity | |
@Table(name = "todos") | |
data class Todo( | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
override var id: Long?, | |
var name: String?, | |
var description: String?, | |
var completed: Boolean? | |
) : IGenericEntity<Long> |
#!/usr/bin/env bash | |
typeofvar () { | |
local type_signature=$(declare -p "$1" 2>/dev/null) | |
if [[ "$type_signature" =~ "declare --" ]]; then | |
printf "string" | |
elif [[ "$type_signature" =~ "declare -a" ]]; then | |
printf "array" |
// @ts-ignore | |
class NumberValidator { | |
number: number | undefined; | |
log = new Logger('NumberValidator'); | |
constructor(n: any) { | |
this.log.log(`NumberValidator constructor called with ${n}`); | |
if (typeof n === 'string') { | |
this.log.error(`NumberValidator failed with string ${n}`); |
Baseado no capítulo de mesmo título do livro "The Rust Programming Language".
Closures em Rust são funções anônimas declaradas inline como um valor, simplificando certos patterns (como iteradores, que veremos no próximo capítulo). Você pode criar a closure em uma posição do código e depois chamá-la em outro lugar, executando-a num contexto diferente. Ao contrário de funções, closures podem capturar valores do ambiente nas quais foram definidas.
Adding inner margins and padding to one component should be avoided. In one screen it may make sense to do this, but as soon as other screen doesn't require that margin, the component becomes incorrect. Do not create new components with inner margins. There are a few ways to undo this. Let's first create an incorrect example:
❌ Wrong
type ProfileCardItemProps = {
label: string
value: string
}