# gradle/libs.versions.toml
# make sure kotlin version is 2.xx
[plugins]
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
This file contains hidden or 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
| # The steps are taken out of https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04 | |
| # Steps to download and run this on your machine: | |
| ## Download the script | |
| # wget https://gist.githubusercontent.com/binarygit/de4ba791bae94c633411d0fb51333728/raw/e3845300fe16fb8751a29757db2719d4cbecb591/install-ruby-and-rails.bash | |
| ## Source to run it because running the script like a command | |
| ## will run it in a new process. This new process won't be able | |
| ## to access the updated bashrc when we update it when installing |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| cd ~/Documents/job_scraper | |
| ruby main.rb | |
| cd ~/Documents/jobs | |
| git ci -am "Deployed on $(date)" | |
| git push |
setup your editor first
export EDITOR=<your editor of choice, eg: vim>
To edit your secrets use:
rails credentials:edit
The above command is editing your config/credentials.yml.enc file.
This file contains hidden or 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
| import ApplicationController from "./application_controller"; | |
| const LEAVING_PAGE_MESSAGE = "Are you sure you want to leave?"; | |
| export default class extends ApplicationController { | |
| static values = { dirty: Boolean }; | |
| static targets = ["submitBtn"]; | |
| connect() { | |
| // find all inputs within the form | |
| // and attach eventListeners |