Skip to content

Instantly share code, notes, and snippets.

extern crate env_logger;
extern crate reqwest;
#[macro_use]
extern crate serde;
extern crate serde_derive;
extern crate serde_json;
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
import React, { Component } from "react";
import PropTypes from "prop-types";
export default class Item extends Component {
onDeleteClick = () => {
this.props.deleteClickHandler();
};
render() {
return (
import React, { Component } from "react";
export default class ToggledItem extends Component {
state = {
show: true,
};
onShowClick = () => {
this.setState({ show: !this.state.show });
};
@keigodasu
keigodasu / System Design.md
Created December 2, 2017 14:33 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
Sinatra使ってみたメモ
==========
インストール
----------
sudo gem install sinatra
コーディング
---------