bundle add rbs rbs_rails steep
こうなる
import { useMemo, useState, useEffect, useDebugValue } from "react"; | |
import { createStore, Reducer, Action, Dispatch, StoreEnhancer } from "redux"; | |
const useRedux = <S, A extends Action<any>>( | |
reducer: Reducer<S, A>, | |
enhancer?: StoreEnhancer<S, A> | |
): [S, Dispatch<A>] => { | |
// store を一度だけ作る | |
const store = useMemo(() => createStore(reducer, enhancer), [reducer, enhancer]); | |
const [state, setState] = useState(store.getState()); |
import { StoreEnhancer } from "redux"; | |
/** | |
* 最初に localStorage から取ってきて | |
* dispatch 毎に localStorage に保存する | |
* @usage | |
* createStore(reducer, localStorageEnhancer('unko')) | |
* createStore(reducer, compose(applyMiddleware(...), localStorageEnhancer('unko'))) | |
*/ | |
const enhancer = (key: string): StoreEnhancer => { |
class ActiveSupport::TestCase | |
# context 'foo' => class Context_foo < self | |
def self.context(name, &block) | |
class_name = "Context_#{name.gsub(/[[:^word:]]+/, '_')}".to_sym | |
const_set(class_name, Class.new(self, &block)) | |
end | |
end |
Array.from(document.links).filter((a)=>/^javascript:\s*GREE\.ui/.test(a.href)).forEach((a)=>a.href=decodeURIComponent(a.href.match(/'callback_url':'([^']+)/)[1])) |
http://live.nicovideo.jp/watch/lv212629769#12:30
――この番組では第1話のエンディングテーマを担当してくれた Boris から Atsuo さんに来ていただきまして、色々とお話を伺っていきたいと思います。
ドーモ、皆さん。Boris の Atsuo です。
Global: | |
- JSON | |
Object: | |
- getPrototypeOf() | |
- geOwnPropertyDescriptor() | |
- geOwnPropertyNames() | |
- create() | |
- defineProperty() | |
- defineProperties() | |
- seal() |
--- | |
- "名前": "天海 春香(あまみ はるか)" | |
"年齢": 17歳 | |
"身長": 158cm | |
"体重": 46kg | |
B-W-H: 83.0cm / 56.0cm / 82.0cm | |
"誕生日": 4月3日(牡羊座) | |
"血液型": O型 | |
"利き手": "右利き" | |
"趣味": "カラオケ、長電話" |