- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
className
instead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
#!/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.
var slackId = 'U02D0FE5H' | |
var processStyles = str => | |
str.replace(/;/g, '!important;').replace(/\.color/g, '#client-ui .color') | |
window.addEventListener('load', () => { | |
var interval = setInterval(() => { | |
var $myStyle = document.getElementById('color_rule_color_' + slackId) |
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])':