Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| /* @flow */ | |
| import * as I from "immutable"; | |
| /** | |
| * Define an immutable record intended for holding reducer state | |
| * @param spec - the keys and their default values | |
| * @return a state record factory function | |
| */ | |
| export function defineRecord<T: Object>( |
| const Pricing = React.createClass({ | |
| // ... | |
| render() { | |
| // ... | |
| return ( | |
| <div className="pricing" style={{ opacity: purchasing ? 0.25 : '' }}> | |
| {purchaseError ? ( | |
| <div className="purchase-complete"> | |
| <h2 style={{ color: 'hsl(10, 50%, 50%)' }}>Oops!</h2> | |
| <p> |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| import React from 'react'; | |
| import axios from 'axios'; | |
| import Rx from 'rxjs'; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| scores: [] | |
| }; |
| #!/bin/bash | |
| echo "describe cluster;" > /tmp/dc | |
| for i in {1..5}; do | |
| echo Attempt $i | |
| if cassandra-cli -f /tmp/dc 2>&1 | grep "Cluster Information"; then | |
| exit 0 | |
| else | |
| sudo service cassandra stop; sudo service cassandra start | |
| sleep 10 | |
| fi |
| import decamelize from 'decamelize'; | |
| import { fromGlobalId } from 'graphql-relay'; | |
| import pluralize from 'pluralize'; | |
| import getItem from '../api/getItem'; | |
| const types = {}; | |
| const endpoints = {}; | |
| const getItemOverrides = {}; |
| export const doTheThing = () => (dispatch, getState) => { | |
| const users = getState(); | |
| dispatch({ | |
| type: 'THE_THING', | |
| users, | |
| }); | |
| }; |
| import co from 'co' | |
| // Generator controller, | |
| // this.models refers to Sequelize models added with server.bind() | |
| function* loginController(request) { | |
| let user = yield this.models.User.find({ | |
| where: { | |
| email: request.payload.email | |
| } |