https://dev.to/somnathpaul/add-bootstrap-4-to-your-ruby-on-rails-6-application-ole
yarn add [email protected] jquery popper.js
# config/webpack/environment.js const { environment } = require('@rails/webpacker')
| h3 Listando produtos | |
| section.container-div.flex-end_new | |
| .btn_new | |
| = button_to 'Novo Produto', new_product_path, method: :get, class: 'btn btn-primary' | |
| table.table.table-hover border="1" | |
| thead | |
| tr | |
| th Descrição | |
| th Preço | |
| th Categoria |
https://dev.to/somnathpaul/add-bootstrap-4-to-your-ruby-on-rails-6-application-ole
yarn add [email protected] jquery popper.js
# config/webpack/environment.js const { environment } = require('@rails/webpacker')
| FROM ruby:2.4-alpine3.7 | |
| # Install dependencies: | |
| # - build-base: To ensure certain gems can be compiled | |
| # - nodejs: Compile assets | |
| # - postgresql-dev postgresql-client: Communicate with postgres through the postgres gem | |
| # - libxslt-dev libxml2-dev: Nokogiri native dependencies | |
| # - imagemagick: for image processing | |
| RUN apk --update add build-base nodejs tzdata postgresql-dev postgresql-client libxslt-dev libxml2-dev imagemagick |
| require 'pry' | |
| class Envia | |
| def metodo_envia | |
| puts "metodo composto" | |
| @a = 2 | |
| return @a | |
| Recebe.new.metodo_recebe(a) | |
| end |
| CREATE TABLE `tabwin_base` ( | |
| `id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
| `pa_coduni` mediumint(8) unsigned DEFAULT NULL, | |
| `pa_gestao` mediumint(8) unsigned DEFAULT NULL, | |
| `pa_condic` varchar(2) DEFAULT NULL, | |
| `pa_ufmun` mediumint(8) unsigned DEFAULT NULL, | |
| `pa_regct` varchar(4) DEFAULT NULL, | |
| `pa_incout` varchar(4) DEFAULT NULL, | |
| `pa_incurg` varchar(4) DEFAULT NULL, | |
| `pa_tpups` varchar(2) DEFAULT NULL, |
| javascript: (function () { | |
| function ats() { | |
| var styles = '*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}'; | |
| jQuery('head').append(jQuery('<style />').html(styles)); | |
| var allowNormal = function () { | |
| return true; | |
| }; | |
| jQuery('*[onselectstart], *[ondragstart], *[oncontextmenu], #songLyricsDiv').unbind('contextmenu').unbind('selectstart').unbind('dragstart').unbind('mousedown').unbind('mouseup').unbind('click').attr('onselectstart', allowNormal).attr('oncontextmenu', allowNormal).attr('ondragstart', allowNormal); | |
| } |
| CLS | |
| @ECHO off | |
| SET base_folder=C:\Program Files\Datasus\Autorizador | |
| CD %base_folder% | |
| Autorizador.exe | |
| ECHO ---------------------------------------------------------- | |
| ECHO PROGRAMA DE BACKUP DO MODULO AUTORIZADOR | |
| ECHO Criacao: Gedean Dias ([email protected]) |
| CLS | |
| @ECHO off | |
| SET base_folder=C:\DATASUS\BPA\BPA | |
| CD %base_folder% | |
| bpamag.exe | |
| ECHO ---------------------------------------------------------- | |
| ECHO PROGRAMA DE BACKUP DO BPA | |
| ECHO Criacao: Gedean Dias ([email protected]) |
| CLS | |
| @ECHO off | |
| SET base_folder=C:\DATASUS\BPA\BPA | |
| CD %base_folder% | |
| bpamag.exe | |
| ECHO ---------------------------------------------------------- | |
| ECHO PROGRAMA DE BACKUP DO BPA | |
| ECHO Criacao: Gedean Dias ([email protected]) |
| CLS | |
| @ECHO off | |
| SET base_folder=C:\DATASUS\BPA\BPA | |
| CD %base_folder% | |
| bpamag.exe | |
| ECHO ---------------------------------------------------------- | |
| ECHO PROGRAMA DE BACKUP DO BPA | |
| ECHO Criacao: Gedean Dias ([email protected]) |