Replaced | Rust replacement | GH |
---|---|---|
ls | exa | https://github.com/ogham/exa |
grep | ripgrep | https://github.com/BurntSushi/ripgrep |
cat | bat | https://github.com/sharkdp/bat |
du | dust | https://github.com/bootandy/dust |
ps | procs | https://github.com/dalance/procs |
find | fd | https://github.com/sharkdp/fd |
sed | sd | https://crates.io/crates/sd |
Search sql like | fselect | https://crates.io/crates/fselect |
This file contains hidden or 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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "App", | |
"version": "1.0" | |
}, | |
"paths": { | |
"/weatherforecast": { | |
"get": { | |
"tags": [ |
This file contains hidden or 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
services: | |
elasticsearch: | |
image: elasticsearch:7.14.0 | |
hostname: elasticsearch | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
discovery.type: single-node | |
networks: |
This file contains hidden or 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
use warp::{Filter, Rejection}; | |
use warp::generic::Either; | |
fn other_routes() -> impl Filter<Error = Rejection, Extract = (Either<(Either<(String,), (String,)>,), (String,)>,)> + Clone + Send + Sync + 'static { | |
// GET /hi | |
let hi = warp::get().and(warp::path("hi").map(|| "Hello, World!".to_string())); | |
// GET /hello/from/warp | |
let hello_from_warp = warp::get().and(warp::path!("hello" / "from" / "warp").map(|| "Hello from warp!".to_string())); | |
// GET /sum/:u32/:u32 | |
let sum = warp::get().and(warp::path!("sum" / u32 / u32).map(|a, b| format!("{} + {} = {}", a, b, a + b))); |
This file contains hidden or 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] | |
name = "lolilol" | |
version = "0.1.0" | |
authors = ["fteychene <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
lol-core = "0.7.1" |
This file contains hidden or 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
plugins { | |
id 'org.jetbrains.kotlin.jvm' version '1.4.10' | |
} | |
apply plugin: 'kotlin-kapt' | |
group 'org.example' | |
version '1.0-SNAPSHOT' | |
repositories { |
This file contains hidden or 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 mtpcraft.tdd.kata | |
import kotlin.random.Random | |
sealed class Cell { | |
companion object | |
} | |
object Dead : Cell() | |
object Living : Cell() |
This file contains hidden or 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
plugins { | |
kotlin("jvm") version "1.3.72" | |
kotlin("kapt") version "1.3.41" | |
} | |
group = "xyz.fteychene.kotlin.sample" | |
version = "0.1.0-SNAPSHOT" |
This file contains hidden or 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] | |
name = "test_multi_runtime" | |
version = "0.1.0" | |
authors = ["fteychene <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
anyhow = "1.0.28" |
This file contains hidden or 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
plugins { | |
id 'org.jetbrains.kotlin.jvm' version '1.3.31' | |
} | |
apply plugin: 'kotlin-kapt' //optional | |
group 'io.saagie.playground' | |
version '1.0-SNAPSHOT' | |
repositories { |
NewerOlder