Skip to content

Instantly share code, notes, and snippets.

View tomekowal's full-sized avatar

Tomasz Kowal tomekowal

  • Kraków, Poland
View GitHub Profile
-> Running mix CLI
-> Running mix loadconfig (inside BlueCode.MixProject)
<- Ran mix loadconfig in 19ms
-> Running mix local.rebar --force --if-missing (inside BlueCode.MixProject)
<- Ran mix local.rebar in 1ms
<- Ran mix CLI in 71ms
-> Running mix CLI
-> Running mix loadconfig (inside BlueCode.MixProject)
<- Ran mix loadconfig in 17ms
-> Running mix local.hex --force --if-missing (inside BlueCode.MixProject)
-> Running mix CLI
-> Running mix loadconfig (inside BlueCode.MixProject)
<- Ran mix loadconfig in 17ms
-> Running mix local.rebar --force --if-missing (inside BlueCode.MixProject)
<- Ran mix local.rebar in 1ms
<- Ran mix CLI in 67ms
-> Running mix CLI
-> Running mix loadconfig (inside BlueCode.MixProject)
<- Ran mix loadconfig in 16ms
-> Running mix local.hex --force --if-missing (inside BlueCode.MixProject)
use crossterm::{
event::{self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use std::{
error::Error,
fmt,
io,
env
# Teller Bank Challenge
```elixir
Mix.install([:req, :jason, :kino, :decompilerl])
```
## Your Solution
```elixir
username = Kino.Input.text("Username") |> Kino.render()

Goal

Increase speed and throughput without sacrificing quality.

Aggregate size

A problem with current solution with "small" aggregates.

sequenceDiagram
	participant Bridge
Mix.install([{:ratatouille, "~> 0.5.0"},
{:keymap, github: "tomekowal/keymap", ref: "master"}])
defmodule SwissArmyKnife do
defmodule Model do
defstruct [:bc_dev_domain, :menu]
end
@behaviour Ratatouille.App

Exploring Elixir compiler

Elixir language is a love child of Ruby and Erlang giving you the best of both worlds: easy concurrency and programmer friendliness with advanced metaprogramming capabilities. Running tests concurrently enhances development cycle time. Nothing comes without drawbacks though. Compilation time is usually quite big. It doesn't matter that much during development because you compile only changed files. However, building from scratch takes time which might hurt CI time.

$player = New-Object System.Media.SoundPlayer "$env:windir\Media\notify.wav"
while ($true) {$player.Play(); sleep 5}
%% Based on code from
%% Erlang Programming
%% Francecso Cesarini and Simon Thompson
%% O'Reilly, 2008
%% http://oreilly.com/catalog/9780596518189/
%% http://www.erlangprogramming.org/
%% (c) Francesco Cesarini and Simon Thompson
-module(frequency).
-export([start/1,allocate/0,deallocate/1,stop/0]).
@tomekowal
tomekowal / pure-impure.md
Last active March 5, 2025 05:06
Pure vs impure

Pure vs impure and why should I care?

Some of the most important advancements in programming came from adding restrictions to the way we program. Famous article by Edsger Dijkstra Go To Statement Considered Harmful shows how introducing one statement into programming language breaks many nice properties of that language. goto gives us freedom and solves couple of simple problems like breaking from nested loops easily, but it can make programs very hard to understand. This happens, because we cannot look at two pieces of code in spearation. The execution can jump to some other place in code or even worse: it can jump from other piece of code to here and We need to keep that in mind.