- Rx for JavaScriptについて、色々触った結論としてはこんな感じ
- あくまでも現時点の感想なんで、そのうち認識が変わるかも
- JavaScriptでRxを使う人ターゲットなんで、他の言語portにも効く話かはわからない
This file contains 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'; | |
const Octokit = require('@octokit/rest') | |
const clientWithAuth = new Octokit({ | |
auth: 'token <blahblahblah>' | |
}); | |
class LabelDef { | |
constructor(name, color, description) { | |
this.name = name; |
- rev
- env
- MacBook Pro (Retina, 15-inch, Mid 2014), 2.8 GHz Intel Core i7, 16 GB 1600 MHz DDR3
- OSX 10.11.6
This file contains 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
/** | |
* This provides extensions for ECMA262 2015's iterator. | |
* | |
* This adds `map()`, `forEach()`, `filter()`, `flatMap()`, or others | |
* to `Iterable<T>`. This enables features looks like "lazy evaluation". | |
* The design refers RxJS v5's one. | |
* | |
* See example: | |
* ``` | |
* |
This file contains 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
/** | |
* This type is based on https://doc.rust-lang.org/std/result/enum.Result.html | |
*/ | |
import {Option, Some, None} from 'option-t'; | |
type mapFn<T, U> = (v: T) => U; | |
type flatmapOkFn<T, U, E> = (v: T) => Result<U, E>; | |
type flatmapErrFn<T, E, F> = (e: E) => Result<T, F>; | |
type recoveryFn<E, T> = (e: E) => T; |
This file contains 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
/* vim: set filetype=typescript shiftwidth=4 tabstop=4 expandtab: */ | |
/* | |
* @license MIT License | |
* | |
* Copyright (c) 2014 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains 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
/* vim: set filetype=javascript shiftwidth=4 tabstop=4 expandtab: */ | |
/* | |
* @repository | |
* https://github.com/saneyuki/observer-js | |
* @version | |
* 0.2.0 | |
* @license | |
* BSD 2-Clause License. | |
* | |
* Copyright (c) 2014, Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> |
This file contains 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
/* | |
* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
* You can obtain one at http://mozilla.org/MPL/2.0/. | |
* The Original Code is mozilla.org code (Firefox 23) | |
* The Initial Developer of the Original Code is mozilla.org. | |
*/ | |
"use strict"; | |
const { classes: Cc, interfaces: Ci, utils: Cu } = Components; |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>servo</title> | |
</head> | |
<body> | |
<outline title="mozilla-servo" text="mozilla-servo"> | |
<outline text="mozilla-servo/cairo" | |
title="mozilla-servo/cairo" type="rss" | |
xmlUrl="https://github.com/mozilla-servo/cairo/commits/master.atom" htmlUrl="https://github.com/mozilla-servo/cairo/commits/master"/> |
NewerOlder