This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The "Five Finger Death Punch" is meant to be an uncomplicated estimation system (as opposed to using Fib.) | |
The estimates are pretty simple: | |
1. Trivial, single resource, clearly defined 'definition of done'. Likely less than a day. | |
2. This is usually a day-long task with multiple variables affecting its complexity: | |
Involved, single resource, defined definition of done but not be clear. | |
Trivial, multiple resources, definition of done may or may not be clear. | |
3. This is a multi-day effect involving multiple resources or lacking a clear definition of done. | |
Complex, multiple resources and definition of done may not be clear. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<p class="menu-label">Latest Callsigns</p> | |
<input class="input" type="text" placeholder="Filter stations..." v-model="stationFilter"> | |
<div class="station-list"> | |
<button | |
v-for="callsign in stations" | |
:key="callsign" | |
@click="focusMarker(callsign)" | |
class="button is-small station-list-item" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Data.CharacterSheet exposing (Die(..), Attributes, CharacterSheet, setName, setProfession, setAgilityDie) | |
type Die | |
= D4 | |
| D6 | |
| D8 | |
| D10 | |
| D12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you make the dropdown specific to users then you can provide a lot of | |
// reasonable default behavior with very little need to override the provided | |
// behavior. You'll, obviously, need to provide an array of users and an onSelect | |
// function in both scenarios. But here you only need to modify the other properties | |
// if you have a special use-case in your UI. For example you don't want to display | |
// the display name but instead the username. You want to change what it matches when | |
// typing ahead, etc. | |
import React from 'react'; | |
import { compose, withState, withHandlers } from 'recompose'; | |
import PropTypes from 'prop-types'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Vassal.Game do | |
# ... bunch of stuff .. | |
@doc false | |
def changeset(%Game{} = game, attrs) do | |
game | |
|> cast(attrs, [:name, :year, :players, :length, :series, :description]) | |
|> cast_assoc(:publisher) | |
|> cast_assoc(:era) | |
|> cast_assoc(:topic) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this. | |
return { | |
...state, | |
loading: true, | |
thing: { | |
...state.thing, | |
name: payload | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Record, List } from 'immutable'; | |
const State = Record({ | |
posts: List(), | |
collapsedComments: List(), | |
activeCategoryFilter: 'hot' | |
}); | |
export default function(state = State(), action) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const types { | |
FETCH_PATCH: 'FETCH_PATCH', | |
SET_PATCH: 'SET_PATCH', | |
SET_PATCH_ERROR: 'SET_PATCH_ERROR', | |
}; | |
export const actions = { | |
fetchPatch: () => ({ type: types.FETCH_PATCH }), | |
setPatch: patch => ({ type: types.SET_PATCH, payload: patch }), | |
setPatchError: error => ([ type: types.SET_PATCH_ERROR, payload: error }), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function* fetchAllTheThingsTask() { | |
const {forms, categories } = yield all({ | |
forms: call(fetchForms), | |
categories: call(fetchCategories), | |
}); | |
const other = convertThings(forms, categories); | |
yield all([ | |
put(actions.setForms(forms)); | |
put(actions.setCategories(categories)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UserBuilder { | |
constructor() { | |
this.user = { | |
name: '', | |
avatar: '', | |
// etc | |
}; | |
} | |
stub() { |
NewerOlder