As configured in my dotfiles.
start new:
tmux
start new with session name:
import React from 'react' | |
export default class Icon extends React.Component { | |
render () { | |
const {type, className} = this.props | |
return ( | |
<i | |
className={`fa fa-${type} fa-fw ${className}`} | |
{...this.props} |
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
const Item = text => <p>Item {text}</p>; | |
const Composition = ({ showB }) => ( | |
<p> | |
<Item text="A" /> | |
{showB && <Item text="B" />} | |
</p>); |
# Show Git Branch | |
git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PS1="[\u@\h \W]\[\033[00;32m\]\$(git_branch)\[\033[00m\]\$ " |
const webpack = require('webpack') | |
const path = require('path') | |
const cssnano = require('cssnano') | |
const BASE_PATH = '..' | |
const resolvePath = subPath => path.resolve(__dirname, `${BASE_PATH}/${subPath}`) | |
const env = process.env.NODE_ENV || 'development' | |
/* eslint-disable */ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
var html = twig({ ref: "user-profile" }).render({ | |
list: ["a", "b", "c"] | |
}); |