Hello there! I'm Luis Angel ✌️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: `$ docker compose up -d` then visit `http://localhost:8080/` | |
services: | |
livebook: | |
restart: "always" | |
pull_policy: "always" | |
container_name: "<SOME_NAME>" | |
image: "ghcr.io/livebook-dev/livebook" | |
build: | |
context: . | |
args: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file = IO.read(ARGV[0]) | |
keys = file.gsub(/=+\s("+.+")+;/, '') | |
values = file.gsub(/("+.+")+\s+=+\s/, '') | |
keys_arr = keys.split('"').select { |f| /[a-zA-Z]/.match(f) } | |
values_arr = values.split('"').select { |f| /[a-zA-Z]/.match(f) } | |
File.open(ARGV[1], 'w') do | f | | |
keys_arr.each_with_index do |key, index| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if total == 1 | |
%div | |
- else | |
.ui.compact.menu | |
- if total <= 4 | |
- for i in 0...total | |
= link_to i + 1, url_for(request.parameters.merge({:page => i + 1})), class: 'item' | |
- else | |
- if page == 1 | |
= link_to '<', url_for(request.parameters.merge({:page => page - 1})), class: 'item disabled' |