Based on:
$ sudo apt-get install python-software-properties
Based on:
$ sudo apt-get install python-software-properties
-- SQL Basic Syntax -- | |
--initialize SQLite database w/ command line: | |
sqlite3 database_name.db | |
--helpful commands | |
.help -- list of commands | |
.tables -- see all tables | |
.mode column / .header on -- helpful for viewing |
#gem 'colorize' | |
module Version | |
VERSION_FILE = "#{Rails.root}/config/initializers/version.rb" | |
PATTERN = /(\d+)\.(\d+)\.(\d+)-(.*)/ | |
PATTERN_NOMETA = /(\d+\.\d+\.\d+)/ | |
@@major = 0; @@minor = 0; @@patch = 0; @@build = 'a' | |
@@version_rb = File.read(VERSION_FILE) | |
def self.version_rb |
" Running Tests... | |
" See also <https://gist.github.com/8114940> | |
" Run currently open RSpec test file | |
map <Leader>rf :w<cr>:!rspec % --format nested<cr> | |
" Run current RSpec test | |
" RSpec is clever enough to work out test to run if cursor is on any line within the test | |
map <Leader>rl :w<cr>:exe "!rspec %" . ":" . line(".")<cr> |
plugins: | |
postcss-import: {} | |
postcss-cssnext: {} | |
tailwindcss: "./app/javascript/src/tailwind.js" |
<%= select(:address, :state, [ | |
['Select a State', 'None'], | |
['Alabama', 'AL'], | |
['Alaska', 'AK'], | |
['Arizona', 'AZ'], | |
['Arkansas', 'AR'], | |
['California', 'CA'], | |
['Colorado', 'CO'], | |
['Connecticut', 'CT'], | |
['Delaware', 'DE'], |
Process goes something like this:
bundle update webpacker
rails webpacker:binstubs
yarn upgrade @rails/webpacker@4.0.0-pre.2 # or 'add' instead of upgrade
yarn upgrade webpack-dev-server@"'3.1.4' # or 'add' instead of upgrade
yarn add webpack-cli
bundle exec rails webpacker:install # don't do this! the scrpit seems to overwrite the @rails/webpacker version to 3.5.3
Make sure you have port 8080 (or whatever you use) open on the remote machine!! Don't be like Vinney.
I'm no webpack expert (in fact this is the first project I've set up by hand ever...), but if you know what you're doing you should be able to change the relevant parts of this to fit your project:
# webpack.config.js
module.exports = {
For me the perfect developer (if there is such a person) has these qualities:
Vim provides built-in mechanisms to search through projects in the form of the grep
command.
However, on large projects, grep is known to be slow; and hence people have been switching to simpler searchers like ack, and faster, parallel (metal?) searchers like ag and pt.
Correspondingly, several plugins have been created that integrate these tools in vim: ack.vim, ag.vim, etc.
However, it's actually very easy to get the functionalities these plugins provide (faster search, results in quickfix-window, jumps, previews, and so on) in vanilla Vim itself; in fact, Vim already populates the grep-search results in a quickfix window. We just need to tell Vim to do the following things (use-case: ag):