Skip to content

Instantly share code, notes, and snippets.

View ExpandingShapes's full-sized avatar
🔬
My goal's in sight

Alexander ExpandingShapes

🔬
My goal's in sight
View GitHub Profile
@keynmol
keynmol / README.md
Created February 8, 2021 12:52
A script to dump bytecode in plaintext

This is a simple script to help me see the bytecode when plaing with Scala 3.

All it does is parallelises the calls to javap command that should available if you have JDK installed.

Installation

Just Ammonite - https://ammonite.io/

It's excellent.

@barseghyanartur
barseghyanartur / manual_install_insomnia_plugin.md
Last active October 20, 2023 08:21
Manually install Insomnia plugin

Manual installation worked for me. Note, that I have installed Insomnia on Fedora using snap.

  1. Go to your plugins directory:
cd /home/user/snap/insomnia/current/.config/Insomnia/plugins
  1. Install the plugin manually (in this case it's insomnia-plugin-default-headers plugin):
@ms-tg
ms-tg / scala_try_monad_axioms.scala
Last active May 28, 2022 03:48
Scala Try: monad axioms
import scala.util.{Try, Success, Failure}
def f(s: String): Try[Int] = Try { s.toInt }
def g(i: Int): Try[Int] = Try { i * 2 }
def unit[T](v: T): Try[T] = Success(v)
//val v = "1"
val v = "bad"
val m = Success(v)