To specify the specific python version to use, you can specify it as follows in the .envrc file
layout python /usr/bin/python3.11
I also needed to install the python-venv package for python 3.11
❯ sudo apt install python3.11-venv
To specify the specific python version to use, you can specify it as follows in the .envrc file
layout python /usr/bin/python3.11
I also needed to install the python-venv package for python 3.11
❯ sudo apt install python3.11-venv
| let () = print_endline "THIS" in | |
| let () = print_endline "IS" in | |
| print_endline "3110";; | |
| (* Can also be written as *) | |
| print_endline "THIS"; | |
| print_endline "IS"; | |
| print_endline "3110" | |
| (* Source: https://courses.cs.cornell.edu/cs3110/2021sp/textbook/basics/printing.html *) |
Using direnv + opam via the following .envrc
export OPAMSWITCH="$HOME/path/to/opam/switch"
eval $(opam env)
| [0m[7m[1m[31m FAIL [39m[22m[27m[0m [2m_build/default/test/test/test/[22m[1mLeap_test.js[22m | |
| Leap | |
| [31m✕[39m [2myear not divisible by 4 in common year (30ms)[22m | |
| [31m✕[39m [2myear divisible by 4, not divisible by 100 in leap year (28ms)[22m | |
| [1m[31m [1m● [22m[1mLeap › year not divisible by 4 in common year[39m[22m | |
| [2mexpect([22m[31mreceived[39m[2m).[22mtoBe[2m([22m[32mexpected[39m[2m) // Object.is equality[22m | |
| Expected: [32mfalse[39m |
| # CLI | |
| sudo apt update -y | |
| sudo apt install -y \ | |
| git curl btop \ | |
| docker.io docker-buildx \ | |
| build-essential pkg-config autoconf bison rustc cargo clang \ | |
| libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
| libvips imagemagick libmagickwand-dev mupdf mupdf-tools \ | |
| redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
| rbenv apache2-utils |
| class DummyController < ApplicationController | |
| def do | |
| render json: { balance: 50 } | |
| end | |
| end |
# make sure to replace `<hash>` with your gist's hash
git clone https://gist.github.com/<hash>.git # with https
git clone [email protected]:<hash>.git # or with ssh| files: | |
| # If this file is edited, it must be removed from EC2 instance prior to deploy. | |
| "/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn_install.sh" : | |
| mode: "000775" | |
| owner: root | |
| group: users | |
| content: | | |
| #!/usr/bin/env bash | |
| set -xe |
| type tree = Leaf | Node(int, tree, tree); | |
| let rec sum = (item) => { | |
| switch (item) { | |
| | Leaf => 0 | |
| | Node(value, left, right) => value + sum(left) + sum(right); | |
| } | |
| }; | |
| let rec height = (root) => { |
| function iframeURLChange(iframe, callback) { | |
| var lastDispatched = null; | |
| var dispatchChange = function () { | |
| var newHref = iframe.contentWindow.location.href; | |
| if (newHref !== lastDispatched) { | |
| callback(newHref); | |
| lastDispatched = newHref; | |
| } |