Acompanhar o material na sequência.
Entenda sempre o CONCEITO!
Object-oriented Programming in 7 minutes | Mosh
6 - (POO - INTERFACE, ABSTRAÇÃO E SINGLETON) - RUBY ON RAILS - TORNE-SE UM PROGRAMADOR
| # COMANDOS | |
| rails new appname -d postgresql | |
| rails new appname --api | |
| gem install rails -v 6.1.4.4 | |
| rails _6.1.4.4_ new myapp | |
| # Rails sem webpack | |
| rails new app-name --skip-webpack-install --skip-javascript |
| # frozen_string_literal: true | |
| #!/usr/bin/ruby | |
| require 'securerandom' | |
| numero_sorteado = "781040" | |
| rodadas = 0 | |
| acerto_1 = false |
Acompanhar o material na sequência.
Entenda sempre o CONCEITO!
Object-oriented Programming in 7 minutes | Mosh
6 - (POO - INTERFACE, ABSTRAÇÃO E SINGLETON) - RUBY ON RAILS - TORNE-SE UM PROGRAMADOR
| # Version 21.6.0.0.0 (Requires glibc 2.14) | |
| # Instalar a biblioteca (http://mirrors.kernel.org/ubuntu/pool/main/liba/libaio/libaio1_0.3.113-5_amd64.deb) | |
| # sudo apt-get install libaio1 libaio-dev unzip | |
| sudo apt-get install libaio1t64 | |
| sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1 | |
| # Criar a pasta | |
| sudo mkdir /opt/oracle |
| # Version 19.11.0.0.0 | |
| # Instalar a biblioteca | |
| sudo apt-get install libaio1 | |
| # Criar a pasta | |
| sudo mkdir /opt/oracle | |
| # Mover para /opt/oracle | |
| instantclient-basic-linux.x64-19.11.0.0.0dbru.zip | |
| instantclient-sdk-linux.x64-19.11.0.0.0dbru.zip |
| #!/bin/bash | |
| #--------------------------------------------------------------------------------------- | |
| # Script to update rbenv, Ruby and Ruby on Rails versions | |
| # Source: https://gist.github.com/alexishida/015b074ae54e1c7101335a2a63518924 | |
| # | |
| # Author: Alex Ishida <alexishida@gmail.com> | |
| # Version: 1.7.2 - 17/10/2025 | |
| #--------------------------------------------------------------------------------------- | |
| # | |
| # If you want install rbenv for the first time |
| const Web3 = require('web3') | |
| const Tx = require('ethereumjs-tx').Transaction | |
| // connect to Infura node | |
| const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY')) | |
| // the address that will send the test transaction | |
| const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd' | |
| const privateKey = new Buffer('PRIVATE_KEY', 'hex') |
| #!/bin/bash | |
| #--------------------------------------------------------------------------------------- | |
| # Script to install rbenv, Ruby, nodejs and yarn | |
| # Source: https://gist.github.com/alexishida/655fb139c759393ae5fe47dacd163f99 | |
| # | |
| # Author: Alex Ishida <alexishida@gmail.com> | |
| # Version: 1.7.3 - 21/10/2025 | |
| #--------------------------------------------------------------------------------------- | |
| # | |
| # HOW TO INSTALL A SCRIPT |