Skip to content

Instantly share code, notes, and snippets.

View yheihei's full-sized avatar

Yohei Kokubo yheihei

View GitHub Profile
# -*- coding: utf-8 -*-
import falcon
import json
import traceback
class ItemsResource:
items = {
"Components": {
"GW": 0.1,
"ECU1": 0.5
# -*- coding:utf-8 -*-
import httplib
import json
import urllib
import traceback
svr = '127.0.0.1:8000'
h = None
data = None
@yheihei
yheihei / bad.css
Created July 27, 2019 01:14
Bad css desgin1
#blog-post a.button {
display:inline-block;
padding: 0.5rem 1rem;
text-decoration:none;
border-radius: 4px;
background-color: #007bff;
color: white;
font-weight:bold;
}
@yheihei
yheihei / bad.css
Created July 27, 2019 01:19
Bad css design2
#blog-archives a.button,
#blog-post a.button {
display:inline-block;
padding: 0.5rem 1rem;
background-color: #007bff;
color: white;
font-weight:bold;
text-decoration:none;
border-radius: 4px;
}
@yheihei
yheihei / bad.css
Created July 27, 2019 01:31
Bad css design3
#blog-post a.button {
display:inline-block;
padding: 0.5rem 1rem;
background-color: #007bff;
color: white;
font-weight:bold;
text-decoration:none;
border-radius: 4px;
}
@yheihei
yheihei / blog.html
Created July 27, 2019 01:49
Good CSS design
<div id="blog-post">
<h2>今日の日記</h2>
<p>本文本文本文</p>
<a href="" class="button button--primary">続きを読む</a>
</div>
<h2>ブログ一覧</h2>
<div id="blog-archives">
<h3>昨日の日記</h3>
<p>本文本文本文...</p>
@yheihei
yheihei / howToScrum.md
Last active August 31, 2022 12:52
スクラムの進め方の概要

スクラムの進め方

ロール

単なる役割。上下関係ではないことに注意。

  • プロダクトオーナー
    • 作成するプロダクトに対する最終決定権を持つ人
    • プロダクトバックログを作る人。開発チームに何を実現して欲しいか伝える人
    • スプリントのゴールを決める人
    • スプリントレビューをする人
  • スクラムマスター
git branch feature/#10 master
git checkout feature/#10
記事一覧で一覧の高さが不定の場合に綺麗に横並びにならない #10
resolved #10
console.log(Math.max(1, 3, 2));
// expected output: 3
const array1 = [1, 3, 2];
console.log(Math.max(...array1));
// expected output: 3