Skip to content

Instantly share code, notes, and snippets.

View anilsenay's full-sized avatar
⚛️

Anıl Şenay anilsenay

⚛️
View GitHub Profile
@heathermiller
heathermiller / scala-cheatsheet.md
Last active May 11, 2024 14:06
Scala Cheatsheet

This cheat sheet originated from the forum, credits to Laurent Poulain. We copied it and changed or added a few things.

Evaluation Rules

  • Call by value: evaluates the function arguments before calling the function
  • Call by name: evaluates the function first, and then evaluates the arguments if need be
    def example = 2      // evaluated when called
    val example = 2      // evaluated immediately
@wunnle
wunnle / vscode-snippets.js
Created April 29, 2020 06:24
vscode react snippets
"import React": {
"prefix": "imr",
"body": [
"import React from 'react' \n \n"
]
},
"functional component": {
"prefix": "sfc",
"body": [
"import React from 'react' \n",