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
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
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
open Core.Std | |
open Async.Std | |
module Http = Cohttp_async | |
let ssl_config = | |
Conduit_async.Ssl.configure ~version:Tlsv1_2 () | |
let main key () = | |
Http.Client.get Uri.(of_string key) ~ssl_config >>= fun (res, body) -> |
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
// for文内のcontinueはNG | |
const abc = (arg: (string | number)[]) => { | |
for (let i=0;i<arg.length;i++) { | |
if (typeof arg[i] === 'string') continue; | |
const abc: number = arg[i]; | |
} | |
} | |
// if文のearly returnはOK | |
const abc2 = (arg: (string | number)[]) => { |
これはredux-middlewaresの紹介です。
Middlewareがどのようなものかついては、非常に分かりやすい記事があるのでそれを貼っておきます。
http://qiita.com/kuy/items/57c6007f3b8a9b267a8e
僕がMiddlewareを活用するようになったのは、この記事を読んでからです。
These examples are not completely compatible about whether to call next(action)
.
function incrementAsync() {
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
declare type ReduxSaga$Predicate<T> = (arg: T) => boolean; | |
declare interface ReduxSaga$Task { | |
isRunning(): boolean; | |
isCancelled(): boolean; | |
result(): any; | |
result<T>(): T; | |
error(): any; | |
done: Promise<any>; | |
cancel(): void; |
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
'use strict' | |
import pluralize from 'pluralize' | |
import ApiRequest from 'lib/ApiRequest' | |
import { SubmissionError } from 'redux-form' | |
const ADD_API_RESOURCE = '@api/ADD_RESOURCE' | |
const REMOVE_API_RESOURCE = '@api/REMOVE_RESOURCE' |
- Brad Taylor ([email protected])
- 4th release: April 23rd, 2004
- Thanks to the NES community. http://nesdev.parodius.com.
- recommended literature: 2A03/2C02/FDS technical reference documents
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
function* relay(request, relayChannel, nextChannel) { | |
const result = yield call(request) | |
yield put(relayChannel, [result, nextChannel]) | |
} | |
function* runSequencially(requestChannel, resultChannel) { | |
let head = channel() | |
let tail = head | |
while (true) { | |
const { request, relayResult } = yield race({ |