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 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 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 | |
# Mobile Tools for Java (J2ME) | |
.mtj.tmp/ | |
# Package Files # | |
*.jar | |
*.war | |
*.ear |
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
services: | |
elasticsearch: | |
image: elasticsearch:7.14.0 | |
hostname: elasticsearch | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
discovery.type: single-node | |
networks: |
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
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 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 <francois.teychene@gmail.com>"] | |
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 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 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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
plugins { | |
kotlin("jvm") version "1.3.21" | |
kotlin("kapt") version "1.3.21" | |
} | |
repositories { | |
mavenCentral() | |
} |
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 mtpcraft.tdd.kata | |
import kotlin.random.Random | |
sealed class Cell { | |
companion object | |
} | |
object Dead : Cell() | |
object Living : Cell() |
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
plugins { | |
kotlin("jvm") version "1.3.72" | |
kotlin("kapt") version "1.3.41" | |
} | |
group = "xyz.fteychene.kotlin.sample" | |
version = "0.1.0-SNAPSHOT" |
NewerOlder