workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb| rm -rf **/node_modules |
| var xhr = new XMLHttpRequest(); | |
| xhr.open('POST', 'https://some.url.com'); | |
| xhr.onreadystatechange = function(event) { | |
| console.log(event.target.response); | |
| } | |
| xhr.send(); |
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "title": "CompareData", | |
| "type": "object", | |
| "properties": { | |
| "age": {"type": "integer"}, | |
| "height": {"type": "integer"}, | |
| "income": {"type": "integer"} | |
| }, | |
| "required": ["age", "height", "income"] |
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| class Doc extends React.Component{ | |
| componentDidMount(){ | |
| document.title = "dfsdfsdfsd" | |
| } | |
| render(){ |
| docker-compose up --build | |
| docker-compose run web bash | |
| docker-compose down | |
| bin/rails db:create | |
| bin/rails db:migrate |
| #!/bin/sh | |
| # prints PATH only line per entry | |
| tr ':' '\n' <<< $PATH | |
| # prints PATH in a single line | |
| echo $PATH |
| " I AM SORRY TO SAY THAT YouCompleteMe only works with Mac Vim. | |
| " | |
| " i love vim-plug for vim plugings | |
| call plug#begin() | |
| " please install YouCompleteMe using the following instructions: | |
| " https://github.com/ycm-core/YouCompleteMe#installation | |
| Plug 'Valloric/YouCompleteMe', { 'do': './install.py' } | |
| Plug 'preservim/nerdtree' | |
| Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } |