Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
This file contains 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
[ids] | |
* | |
[main] | |
q = q | |
w = w | |
e = f | |
r = p |
This file contains 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
{ | |
"info": { | |
"_postman_id": "39f2afad-8af6-40d3-bdeb-f50e1d50f577", | |
"name": "Demo", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "List People", | |
"request": { |
This file contains 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
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatefulWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override | |
State<MyApp> createState() => _MyAppState(); | |
} |
Projeto de compras de passagens aereas Caelum Airlines.
O projeto é composto de uma API Rest desenvolvida em Java com Spring Boot que será consumido por um cliente desenvolvido em NodeJS com Next.JS
O projeto tem como objetivo simular o dia a dia em um projeto real.
Para gerenciar as "demandas" usaremos um trello como nosso kanban, e algumas das funcionalidade iniciais já estarão implementadas.
This file contains 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
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker | |
#: Fonts {{{ | |
#: kitty has very powerful font management. You can configure | |
#: individual font faces and even specify special fonts for particular | |
#: characters. | |
font_family JetBrains Mono | |
bold_font auto |
This file contains 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
class Strategy: | |
registered = [] | |
def __init__(self, func): | |
self._func = func | |
Strategy.registered.append(func) | |
def __call__(self, *args, **kwargs): | |
return self._func(*args, **kwargs) |
This file contains 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 get_pwd(){ | |
echo "${PWD/$HOME/~}" | |
} | |
local ret_status="%(?:%{$fg_bold[green]%}λ :%{$fg_bold[red]%}λ )" | |
PROMPT='%{$fg[cyan]%}$(get_pwd)%{$reset_color%} %{$fg[red]%}❯%{$fg[yellow]%}❯%{$fg[green]%}❯$(git_prompt_info) | |
${ret_status}%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} (%{$fg[red]%}" |
This file contains 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 sample.rest.demo.either; | |
import org.junit.Test; | |
import sun.reflect.generics.reflectiveObjects.NotImplementedException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import static org.junit.Assert.assertEquals; |
This file contains 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
public class Principal { | |
public static void main(String[] args) throws Exception { | |
DefaultCamelContext context = new DefaultCamelContext(); | |
context.addRoutes(new RouteBuilder() { | |
AggregationStrategy ag = new MyAggragate(); | |
@Override | |
public void configure() throws Exception { |
NewerOlder