Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| # Compatible with Devise 3.1 | |
| # https://gist.github.com/birula/8596087 | |
| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso." | |
| confirmed_and_signed_in: "Sua conta foi confirmada com sucesso. Você está logado." | |
| send_instructions: "Dentro de minutos você receberá um e-mail com instruções para confirmar a sua conta." | |
| send_paranoid_instructions: "Caso seu e-mail exista em nossa base, você receberá um e-mail em poucos minutos com instruções sobre como confirmar sua conta." |
| # SSL self signed localhost for rails start to finish, no red warnings. | |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
| require 'open3' | |
| class GNUPlotter < Struct.new(:data, :params) | |
| def plot | |
| image, s = Open3.capture2("gnuplot", stdin_data: gnuplot_commands, binmode: true) | |
| system "open #{params[:image_name]}" | |
| end | |
| private | |
| def gnuplot_commands |
| ➜ test mix phoenix.routes | |
| page_path GET / Test.PageController :index | |
| register_path POST /register Test.Addict.AddictController :register | |
| register_path GET /register Test.Addict.AddictController :register | |
| login_path POST /login Test.Addict.AddictController :login | |
| login_path GET /login Test.Addict.AddictController :login | |
| logout_path POST /logout Test.Addict.AddictController :logout | |
| logout_path GET /logout Test.Addict.AddictController :logout | |
| recover_password_path POST /recover_password Test.Addict.AddictController :recover_password | |
| recover_password_path GET /recover_password Test.Addict.AddictController :recover_password |