$ rails g model User
belongs_to
has_one
| Mix.install( | |
| [ | |
| {:exla, "~> 0.6.1"}, | |
| {:bumblebee, "~> 0.4.2", github: "elixir-nx/bumblebee", branch: "main"}, | |
| {:benchee, "~> 1.1"} | |
| ], | |
| config: [nx: [default_backend: EXLA.Backend]] | |
| ) | |
| Benchee.run(%{ |
| def find_longest_rising_route(matrix) | |
| matrix_with_locations = | |
| matrix.each_with_index.map do |row, index| | |
| row.each_with_index.map do |el, inner_index| | |
| [index, [inner_index, el]] | |
| end | |
| end | |
| sorted_with_locations = |
| set saveLocation to ((path to desktop) as string) | |
| set fullPath to saveLocation & "newDogName" | |
| set newFilePath to fullPath & ".svg" | |
| log fullPath | |
| tell application "Adobe Illustrator" | |
| activate | |
| make document with properties {name:"dogName"} | |
| set theFrame to (make new text frame in current document with properties {contents:"Chi Chi", kind:area text, name:"notes"}) | |
| make new character style in document 1 with properties {name:"dog Name Character Style"} |
| gem install eventmachine -v '1.0.7' -- --with-cppflags=-I/usr/local/opt/openssl/include | |
| gem uninstall libv8 | |
| gem install therubyracer -v YOUR_RUBY_RACER_VERSION | |
| gem install libv8 -v YOUR_VERSION -- --with-system-v8 | |
| # if issue with capybara-webkit | |
| brew install qt |
| #!/bin/bash | |
| # Make sure to chmod +x remove_header.sh | |
| ag 'Created (?=by)' -l | while read file | |
| do | |
| sed -i .bak '1,17d' $file | |
| rm "$file.bak" | |
| done |
| class Rule90 | |
| def initialize input | |
| @input = input.split(//).map(&:to_i) | |
| end | |
| def get_next target_index, input | |
| input[target_index + 1] | |
| end | |
| def get_prev target_index, input |
| echo "Enter app name " | |
| read name | |
| echo "Your app's name is: $name" | |
| echo "Installing..." | |
| rails new $name -T -d postgresql | |
| cd $name | |
| echo 'gem "rspec-rails", :group => [:development, :test]' >> Gemfile | |
| bundle | |
| rails g rspec:install | |
| echo 'gem "devise"' >> Gemfile |