List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
Steps to follow: | |
1. Open Terminal | |
2. Type Command : dmesg | grep -i scsi (This will provide your WD Passport drive name) | |
Example : In my case its "sdb" (See the line [sdb] Attached SCSI disk above the WD My Passport) | |
3 Download the code zip file: https://github.com/geekhaidar/WD-Passport-Unlock-Linux | |
4. Unzip the files downloaded in the Download folder |
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
--[[ | |
=== HammerText === | |
Based on: https://github.com/Hammerspoon/hammerspoon/issues/1042 | |
How to "install": | |
- Simply copy and paste this code in your "init.lua". | |
How to use: | |
- Add this init.lua to ~/.hammerspoon/Spoons/HammerText.spoon | |
- Add your hotstrings (abbreviations that get expanded) to the "keywords" list following the example format. |
" Set this variable to 1 to fix files when you save them. | |
let g:ale_fix_on_save = 1 | |
highlight ALEWarning ctermbg=DarkMagenta | |
highlight ALEError ctermbg=DarkBlue | |
" Enable completion where available. | |
" This setting must be set before ALE is loaded. | |
let g:ale_completion_enabled = 1 | |
let g:ale_fixers = { |
# Block facebook! | |
0.0.0.0 static.ak.fbcdn.net | |
0.0.0.0 www.connect.facebook.net | |
0.0.0.0 www.facebook.com | |
0.0.0.0 www.fbcdn.com | |
0.0.0.0 www.fbcdn.net | |
0.0.0.0 www.graph.facebook.com | |
0.0.0.0 www.login.facebook.com | |
0.0.0.0 www.s-static.ak.facebook.com | |
0.0.0.0 www.static.ak.connect.facebook.com |
const Form = React.lazy(() => import('./form/form')); | |
class App extends Component { | |
state = { | |
open: false, | |
} | |
handleClick = () => { | |
this.setState({ open: true }); | |
} |
// @flow : which files we want to flow will monitor | |
import * as React from 'react' // let’s flowify the component we just wrote | |
import Xcomponent from "xcomponent" | |
const GridType = { | |
article: "article", | |
text: "text", | |
test: "test" | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |