#3C4C55 #899BA6
#DF8C8C #F2C38F
#A8CE93 #A8CE93
# dependencies to install | |
brew install ffmpeg | |
brew install gifsicle | |
# add this to your shell environment | |
function v2g() { | |
ffmpeg -i "$1" -pix_fmt rgb8 -r 10 "$2" && gifsicle -O3 "$2" -o "$2" | |
} | |
# record a screencast with Quick Player |
require 'benchmark' | |
require 'securerandom' | |
words = [] | |
# generate list of random "words" | |
10_000.times.map do | |
words << SecureRandom.hex | |
end |
<item> | |
<title /> | |
<description> | |
Fifty-nine passengers and four crew members safely evacuated a United Express flight after the engine burst into flames.<div class="feedflare"> | |
<a href="http://rss.cnn.com/~ff/rss/cnn_travel?a=H995_4vxihE:2pGC83WfmKU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/rss/cnn_travel?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_travel?a=H995_4vxihE:2pGC83WfmKU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/rss/cnn_travel?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_travel?a=H995_4vxihE:2pGC83WfmKU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/rss/cnn_travel?i=H995_4vxihE:2pGC83WfmKU:V_sGLiPBpWU" border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_travel?a=H995_4vxihE:2pGC83WfmKU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/rss/cnn_travel?d=qj6IDK7rITs" border="0"></img></a |
import { shallow } from "enzyme"; | |
import { shallowToJson } from "enzyme-to-json"; | |
import Layout from "../Layout"; | |
const defaultProps = { | |
schedule: { | |
start: "2012-12-12", | |
details: [ | |
{ | |
amount: 2, |
const MockHeaderAction = (Component) => ( | |
class MockHeaderAction extends React.Component { | |
constructor () { | |
super(...arguments); | |
this.headerAction = jest.fn(); | |
} | |
render() { | |
return <Component { ...this.props } { ...this.state } /> | |
} | |
} |
// Removing Decorators | |
// | |
// Flow does not currently understand decorators. Also, removing the decorators | |
// sets us up to easily export things without data for testing. | |
// Current Pattern | |
@connect(mapStateToProps) | |
@withSavedPayments | |
export default class CheckoutButtons extends Component { |
// psuedo code | |
class MessageForm extends React.Component { | |
onSubmit = (e) => { | |
// POST the new message | |
} | |
render() { | |
return ( | |
<form onSubmit={this.onSubmit}> |