Skip to content

Instantly share code, notes, and snippets.

View nicokosi's full-sized avatar

Nicolas Kosinski nicokosi

View GitHub Profile
{"lastUpload":"2020-04-23T05:05:17.088Z","extensionVersion":"v3.4.3"}
@nicokosi
nicokosi / kotlin-koans-1-intro.kt
Last active July 27, 2020 06:00
My answers to Kotlin Playground Koans: https://play.kotlinlang.org/koans
/* My answers to [Kotlin Playground Koans](https://play.kotlinlang.org/koans) */
/* Intro */
// Hello, world!
fun start(): String = "OK"
// Named arguments
fun joinOptions(options: Collection<String>) =
options.joinToString(prefix = "[", postfix = "]")
@nicokosi
nicokosi / JBTechDayforJava2020.md
Last active August 3, 2020 07:40
My notes during the "JetBrains Technology Day for Java" conference (2020-07-10)

Notes during the "JetBrains Technology Day for Java" conference (2020-07-10)

Recordings

Bootiful Testing, by Josh Long

Live demo on Spring reactive code (spring.web.reactive)
Using Inside-out TDD
Http mocking via WireMock
Contract tests (exposed by producer, used by client)
@nicokosi
nicokosi / fun-with-collectors.jshell
Last active July 29, 2020 04:15
JShell experimentations with Java 14 collectors from streams API
// Inspired by Venkat Subramaniam's talk "LJC Virtual Meetup: Exploring Collectors", similar to this former one: https://www.youtube.com/watch?v=z1eaTv_FASg
// See javadoc for Collectors: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/util/stream/Collectors.html
// Run me with Java 14 via 'jshell --enable-preview'
record Person(String name, int age) {}
var persons = List.of(
new Person("Sarah", 14),
new Person("Venkat", 30),
new Person("Sarah", 65),
new Person("Farid", 12));
@nicokosi
nicokosi / awesome-brass-bands.md
Last active August 25, 2020 20:35
Awesome brass bands! 🎶🎺🎷
@nicokosi
nicokosi / rust-glossary.md
Last active October 19, 2021 05:45
Rust glossary

Rust glossary

  • borrowing: a borrowed variable is temporary shared to a function that does not own it (see "reference").

  • dereference: taking ownership on a reference using the dereference operator, *. ref

@nicokosi
nicokosi / data_manipulation.nu
Last active September 6, 2023 02:45
Manipulating data with nushell commands (see https://www.nushell.sh / https://www.nushell.sh/cookbook)
# Download a JSON file from a URL and visualize it:
fetch https://jsonplaceholder.typicode.com/posts
# Visualize a JSON file:
open ./work/tldr/package.json
# Fetch the first 2 JSON array items:
fetch https://jsonplaceholder.typicode.com/posts | first 2
# Fetch raw JSON :
@nicokosi
nicokosi / slides-créer-son-extension-GitHub-CLI.md
Last active June 15, 2022 04:23
Les slides de ma présentation "créer son extension GitHub CLI", à visualiser avec https://github.com/maaslalani/slides (cf. la version statique Google Slides : https://docs.google.com/presentation/d/1MvoZixlwMvA9bbDoA1d6Gf-sLpX7xkiwnmi5_WBY-vU/edit?usp=sharing)
author
nicokosi

Créer son extension GitHub CLI... 🧑‍💻

...pour joindre l’utile ⚙️ à l’agréable ❤️ ?


Bonjour 👋

@nicokosi
nicokosi / timeless-software-books.md
Last active August 28, 2023 07:25
Timeless sofware books listed on 2023-02-28 during the Software Crafters Paris meetup (https://www.meetup.com/paris-software-craftsmanship/events/291421743)

Timeless software books

Timeless sofware books listed on 2023-02-28 during the Software Crafters Paris meetup, see the picture on Twitter or Mastodon.

  • The Software Craftsman: Professionalism, Pragmatism, Pride - Sandro Mancuso
  • The Joy of Clojure: Thinking the Clojure Way - Michael Fogus, Chris Houser
  • Effective Java - Joshua Bloch
  • Clean Code: A Handbook of Agile Software Craftsmanship - Robert Martin
  • Systems Performance: Enterprise and the Cloud - Brendan Gregg
@nicokosi
nicokosi / nicokosi-no-cv.md
Last active April 24, 2023 11:48
Mon "non CV" (ou "no-cv")