非同期イベントの場合は、success と failure を持ちます。
基本的にこの saga が container からコールされます。(e.g. page のロード等)
ここでは複数の saga が処理順にかかれており、開始から終了までの処理が全て書かれることを想定します。
| {'あ':'にょににゃぁにゅ'}, | |
| {'い':'にょににゃぁにゃぁ'}, | |
| {'う':'にょににゃぁにゃー'}, | |
| {'え':'にょににゃぁにゃわん'}, | |
| {'お':'にょににゃぁにゃーん'}, | |
| {'か':'にょににゃぁにゃーご'}, | |
| {'き':'にょににゃぁにゃーー'}, | |
| {'く':'にょににゃぁしゃ'}, | |
| {'け':'にょににゃあにゃ'}, |
| const { URLSearchParams } = require('url'); | |
| const params = new URLSearchParams('foo=bar&hoge=fuga&foo=baz'); | |
| // URLSearchParams { 'foo' => 'bar', 'foo' => 'baz', 'hoge' => 'fuga' } | |
| console.log(params.toString()); // foo=bar&foo=baz&hoge=fuga | |
| params.sort(); | |
| // URLSearchParams { 'foo' => 'bar', 'foo' => 'baz', 'hoge' => 'fuga' } | |
| console.log(params.toString()); // foo=bar&foo=baz&hoge=fuga |
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
| import { Request, Response } from 'express'; | |
| import * as React from 'react'; | |
| import { Provider } from 'react-redux'; | |
| import { renderToNodeStream, renderToStaticMarkup } from 'react-dom/server'; | |
| import { StaticRouter } from 'react-router-dom'; | |
| import { ServerStyleSheet } from 'styled-components'; | |
| import { HTML } from '../HTML'; | |
| import { Router } from '../../client/Router'; | |
| import { configureStore } from '../../client/store/configureStore'; | |
| import { rootSaga } from '../../client/sagas'; |
| import { delay } from 'redux-saga'; | |
| import { put, take, race, call, cancel, takeEvery } from 'redux-saga/effects'; | |
| import { Upload, addJob, removeJob } from '../actions/job'; | |
| function* upload(action: Upload) { | |
| try { | |
| const { file, jobId: id } = action.payload; | |
| yield put(addJob({ id })); |
https://help.github.com/en/articles/repository-permission-levels-for-an-organization
Show only repositories which have over 40 stars.
| owner | name | stargazersCount | watchersCount | forksCount |
|---|---|---|---|---|
| webpack | webpack-dev-server | 5340 | 5340 | 916 |
| babel | babel-loader | 3712 | 3712 | 324 |
| Clipy | Clipy | 2859 | 2859 | 206 |
| const { readFile } = require('fs').promises; | |
| (async () => { | |
| const n = 3; | |
| /** | |
| 1 middleware | |
| 5 middleware | |
| 10 middleware | |
| 15 middleware |
| import * as readline from 'node:readline/promises'; | |
| import { stdin as input, stdout as output } from 'node:process'; | |
| const token = "your-token"; | |
| const messages = []; | |
| const rl = readline.createInterface({ input, output }); | |
| rl.prompt(); | |
| rl.on('line', async (line) => { |