lscpu | grep -i VirtualizationVT-xfor IntelAMD-Vifor AMD
| //> using scala 3.7.2 | |
| //> using jvm temurin:21 | |
| // | |
| //> using dep org.typelevel::cats-core:2.13.0 | |
| //> using dep org.typelevel::cats-effect:3.6.3 | |
| // | |
| //> using test.dep org.scalameta::munit:1.1.1 | |
| //> using test.dep org.typelevel::munit-cats-effect:2.1.0 | |
| //> using test.dep org.scalameta::munit-scalacheck:1.1.0 | |
| //> using test.dep org.scalacheck::scalacheck:1.18.1 |
| //> using scala 3.6.4 | |
| //> using jvm temurin:21 | |
| // | |
| //> using dep org.typelevel::cats-core:2.13.0 | |
| //> using dep org.typelevel::cats-effect:3.6.0 | |
| //> using dep io.github.timwspence::cats-stm:0.13.5 | |
| import cats.syntax.all.* | |
| import cats.effect.{IO, IOApp} | |
| import io.github.timwspence.cats.stm.* |
| # Usage: nix-shell path/to/scala-native.nix | |
| let | |
| pkgs = import <nixpkgs> {}; | |
| pkgs-unstable = import <nixpkgs-unstable> {}; | |
| stdenv = pkgs.stdenv; | |
| in rec { | |
| clangEnv = stdenv.mkDerivation rec { | |
| name = "clang-env"; | |
| shellHook = '' |
| #!/bin/bash | |
| # Usage: ./get_all_gh_secrets.sh "<OWNER>" "100" | |
| GITHUB_OWNER=$1 | |
| MAX_NUMBER_OF_REPOS=$2 | |
| [[ -z "${GITHUB_OWNER}" ]] && echo "Error: GITHUB_OWNER must be passed as first parameter" && exit 10 | |
| [[ -z "${MAX_NUMBER_OF_REPOS}" ]] && echo "Error: MAX_NUMBER_OF_REPOS must be passed as second parameter" && exit 20 |
| %% Find a number X such that "prepending" 4 to X equals to | |
| %% 4 times the number generated by "suffixing" X with 4. | |
| %% | |
| %% X = X1,...,Xn . 4,X1,...,Xn = 4 * X1,...Xn,4 | |
| %% | |
| %% :- find( 4, 9000, 11000, N ). | |
| %% | |
| natural( 0 ). | |
| natural( s(X) ) :- natural( X ). |
| user_id | name | phone | |
|---|---|---|---|
| annoyingPrefix_001 | Alice | 07782123456 | |
| annoyingPrefix_002 | Bob | 07798765432 | |
| annoyingPrefix_003 | Carl | 07711928374 |
| import cats.effect.{IO, Resource} | |
| case class Config() | |
| case class InputA() | |
| case class InputB() | |
| case class InputC() | |
| case class OutputA() | |
| case class OutputB() | |
| case class OutputC() |