- j, s scroll down scrollDown
- k, w scroll up scrollUp
- h scroll left scrollLeft
- l scroll right scrollRight
- d scroll half-page down scrollPageDown
-
scroll full-page down scrollFullPageDown - u, e scroll half-page up scrollPageUp
- scroll full-page up scrollFullPageUp
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "pwa-chrome", | |
| "request": "attach", | |
| "name": "Attach to Karma", | |
| "address": "localhost", | |
| "restart": true, | |
| "port": 9222, |
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
| $.rails.allowAction = function(element) { | |
| var message = element.attr('data-confirm'); | |
| if (!message) { return true; } | |
| var opts = { | |
| title: "Confirmação", | |
| message: message, | |
| buttons: { | |
| confirm: { | |
| label: 'Sim', |
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
| VAGRANTFILE_API_VERSION = '2' | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = '<your>/<box>' | |
| config.ssh.insert_key = false # linha obrigatória para Windows | |
| config.vm.network :forwarded_port, guest: 3000, host: 3000 # rails | |
| config.vm.network :forwarded_port, guest: 9292, host: 9292 # rack | |
| config.vm.network :forwarded_port, guest: 4567, host: 4567 # sinatra | |
| config.vm.network :forwarded_port, guest: 1080, host: 1080 # mailcatcher |
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
| // Using jquery.inputmask: https://github.com/RobinHerbots/jquery.inputmask | |
| // For 8 digit phone fields, the mask is like this: (99) 9999-9999 | |
| // For 9 digit phone fields the mask is like this: (99) 99999-9999 | |
| function setupPhoneMaskOnField(selector){ | |
| var inputElement = $(selector) | |
| setCorrectPhoneMask(inputElement); | |
| inputElement.on('input, keyup', function(){ | |
| setCorrectPhoneMask(inputElement); | |
| }); |
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
| #!/bin/sh | |
| # | |
| # This pre-commit hook looks for `fdescribe`, `fcontext`, `fit`, `fspecify` and `fexample` in the | |
| # staged files and exits with an error code of 1 if there are such changes. | |
| # | |
| STATUS=0 | |
| DESCRIBEFILES=$(git diff --staged -G"^\s*fdescribe\(" --name-only | wc -l) | |
| if [ $DESCRIBEFILES -gt 0 ] |
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
- postgresql
- postgresql-client
- libpq-dev
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
| # encoding: UTF-8 | |
| # pt-BR translations for Devise | |
| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso. Você está logado." | |
| send_instructions: "Dentro de minutos, você receberá um e-mail com instruções para a confirmação da sua conta." | |
| send_paranoid_instructions: "Se o seu endereço de e-mail estiver cadastrado, você receberá uma mensagem com instruções para confirmação da sua conta." | |
| failure: | |
| already_authenticated: "Você já está logado." |