Skip to content

Instantly share code, notes, and snippets.

View ganeshchand's full-sized avatar

Ganesh Chand ganeshchand

View GitHub Profile
@ganeshchand
ganeshchand / learn_scala_greetings.sc
Last active May 14, 2023 16:10
A Hello World Scala Script
println("Hello World, let us live live in peace and harmony")
/* scala-cli script
This script is published as part of the blog - https://ganeshchand.com/blog/scala-cli-getting-started
The script demonstrates how to parameterize your scripts and share/run the script as github gist.
How to run this script:
scala-cli https://gist.github.com/ganeshchand/fa703cc5459aa92dd07210ea6d549765 -- "Scala is fun"
*/
// greet with good morning or good afternoon or good evening based on the time of the day
val hour = java.time.LocalTime.now.getHour
val greeting = hour match {
@ganeshchand
ganeshchand / mac_keyboard_shortcuts.md
Created December 4, 2023 20:48
keyboard shortcuts

Slack

Command Description
⌘/ Keyboard Shortcuts or Toggle to Help Panel
⌘ G Search
⌘ N New Message
⌘ SHIFT N New Canvas