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
# CLI | |
sudo apt update | |
sudp apt install \ | |
git curl docker.io \ | |
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 libsqlite3-0 \ | |
redis-server mysql-server sqlite3 libmysqlclient-dev apache2-utils \ | |
rbenv |
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
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} |
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
~/Development/radiopaedia docker-development | |
❯ bin/setup | |
Login Succeeded | |
== Checking/Installing dependencies == | |
The Gemfile's dependencies are satisfied | |
Waiting for database to become ready | |
[+] Running 4/0 | |
✔ Network radiopaedia_default Created 0.0s | |
✔ Container radiopaedia-redis-1 Created 0.0s | |
✔ Container radiopaedia-s3-1 Created 0.0s |
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
$ brew install v8@3.15 | |
$ bundle config build.libv8 --with-system-v8 | |
$ bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15) | |
$ bundle install |
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
❯ bin/rails s | |
=> Booting Puma | |
=> Rails 6.0.2.1 application starting in development | |
=> Run `rails server --help` for more startup options | |
Puma starting in single mode... | |
* Version 4.3.1 (ruby 2.6.5-p114), codename: Mysterious Traveller | |
* Min threads: 5, max threads: 5 | |
* Environment: development | |
* Listening on tcp://127.0.0.1:3000 | |
* Listening on tcp://[::1]:3000 |
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
Add this on in settings.json | |
``` | |
"editor.parameterHints": false, | |
``` |
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
async function fetchAddressBalances() { | |
if (isFederatedAddress(address)) { | |
let xlmAddress = await fetchXLMAddressFromFederation(address); | |
if (xlmAddress.length > 0) { | |
let result = await fetchXLMAddressBalances(xlmAddress); | |
if (Array.isArray(result)) { | |
onButtonClick(result); | |
} else { | |
onError(result); | |
} |
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
"scripts": { | |
"predeploy": "npm run build", | |
"deploy": "gh-pages -d build" | |
}, |
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
class Text | |
def greet | |
puts "This is cool!" | |
end | |
end |
NewerOlder