- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
className
instead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
{ | |
"name": "host2image", | |
"description": "Редирект с хостинга с рекламой на картинку.", | |
"author": "felixexter", | |
"version": "2.0", | |
"content_scripts": [{ | |
"all_frames": false, | |
"js": [ "script.js" ], | |
"matches": [ "http://*/*", "https://*/*" ], | |
"run_at": "document_end" |
#!/bin/bash | |
# add to /usr/local/bin/killbydir | |
# chmod +x /usr/local/bin/killbydir | |
path=`pwd` | |
for process in `pgrep $1`; do | |
foo=(`pwdx $process`) | |
if [ ${foo[1]} = $path ]; then | |
pid=${foo[0]::-1} | |
`kill -9 $pid` | |
fi |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
keymap.cson
file by clicking on Atom -> Keymap…
in the menu bar'atom-text-editor[data-grammar~="jsx"]:not([mini])':
# Отображение текущего состояния. | |
alias gs='git status ' | |
# Отображение коммитов с коротким названием, датой, комментарием и автором. | |
alias gl='git --no-pager log --pretty=format:"%h | %ad | %s%d [%an]" --graph --date=short' | |
alias glo=gl | |
alias glog=gl | |
# Добавление всех файлов с учётом удалённых и отображение текущего состояния. | |
alias gall='git add --all && git status' |