Skip to content

Instantly share code, notes, and snippets.

View nicokosi's full-sized avatar

Nicolas Kosinski nicokosi

View GitHub Profile
@nicokosi
nicokosi / activities.csv
Last active September 6, 2023 06:34
Exploring Strava activities via nushell
Activity ID Activity Date Activity Name Activity Type Activity Description Elapsed Time Distance Max Heart Rate Relative Effort Commute Activity Private Note Activity Gear Filename Athlete Weight Bike Weight Elapsed Time Moving Time Distance Max Speed Average Speed Elevation Gain Elevation Loss Elevation Low Elevation High Max Grade Average Grade Average Positive Grade Average Negative Grade Max Cadence Average Cadence Max Heart Rate Average Heart Rate Max Watts Average Watts Calories Max Temperature Average Temperature Relative Effort Total Work Number of Runs Uphill Time Downhill Time Other Time Perceived Exertion <span class="translation_missing" title="translation missing: en-US.lib.export.portability_exporter.activities.horton_values.type">Type</span> <span class="translation_missing" title="translation missing: en-US.lib.export.portability_exporter.activities.horton_values.start_time">Start Time</span> Weighted Average Power Power Count Prefer Perceived Exertion Perceived Relative Effort Com
@nicokosi
nicokosi / dev-versions.md
Last active July 26, 2023 07:29
development versions in mainstream ecosystems

development versions in mainstream ecosystems 🚧

or: Java Maven SNAPSHOT and friends

Java Maven SNAPSHOT versions

The SNAPSHOT value refers to the 'latest' code along a development branch, and provides no guarantee the code is stable or unchanging. Conversely, the code in a 'release' version (any version value without the suffix SNAPSHOT) is unchanging.

In other words, a SNAPSHOT version is the 'development' version before the final 'release' version. The SNAPSHOT is "older" than its release.

https://maven.apache.org/guides/getting-started/index.html#what-is-a-snapshot-version

@nicokosi
nicokosi / nicokosi-no-cv.md
Last active April 24, 2023 11:48
Mon "non CV" (ou "no-cv")
@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 / 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 / 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 / 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 / awesome-brass-bands.md
Last active August 25, 2020 20:35
Awesome brass bands! 🎶🎺🎷
@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));