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
<b>Foo Bar</b> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const x = readInput(); | |
if (isMultipleOfThree(x) && endsWithDigitFive(x)) { | |
return true; | |
} else { | |
return false; | |
} |
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
function getPromotionalCode() { | |
... | |
if (!promotionalCode) { | |
emit('NoPromotionalCode') | |
} | |
... | |
} |
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
diff --git a/test/package-lock.json b/test/package-lock.json | |
index db14f329..31122d5b 100644 | |
--- a/test/package-lock.json | |
+++ b/test/package-lock.json | |
@@ -9,7 +9,7 @@ | |
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", | |
"integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", | |
"requires": { | |
- "@babel/highlight": "^7.0.0" | |
+ "@babel/highlight": "7.5.0" |
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
const card = yield { wait: cardInserted } | |
yield { request: { type: loadAccount, card } } |
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
(isEnterpriseUser | |
? Promise.resolve() | |
: showAdvertisement() | |
) | |
.then(() => loadAccount(card)) | |
.then(...) |
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
import BProgram from "./bp.js"; | |
function createBehavioralMiddleware(threads) { | |
return ({ dispatch, getState }) => { | |
const bp = new BProgram(); | |
let pr = 1; | |
bp.run(); | |
threads.forEach(thread => bp.addBThread(``, pr++, thread)); | |
bp.addBThread("dispatch", pr++, function*() { |
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
import React from 'react'; | |
import Coroutine from 'react-coroutine'; | |
import Deferred from './Deferred.js'; | |
export default Coroutine.create(Counter); | |
async function* Counter() { | |
let counter = 0; | |
while (true) { | |
yield ( |
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
<Behavior | |
threads={[ | |
function* ({ fetchSavedAudiences, onSelectSearch }) { | |
const value = yield { wait: onSelectSearch } | |
const audiences = yield { request: fetchSavedAudiences(value) } | |
this.setState({ audiences }) | |
}, | |
function* ({ onSelectChange }) { | |
const selectedAudience = yield { wait: onSelectChange } | |
this.setState({ selectedAudience }) |
NewerOlder