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
/* | |
* Copyright 2016 Kevin Mark | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
/* | |
class Abc { | |
instanceProperty() { | |
console.log('instanceProperty'); | |
// this.classProperty(); | |
} | |
classProperty = () => { | |
console.log('classProperty'); | |
} |
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 Promise from 'bluebird'; | |
Promise.config({ | |
cancellation: true, | |
}); | |
console.log('Experiment A!!!'); | |
const rootPromise1 = new Promise((resolve, reject, onCancel) => { | |
console.log('A: rootPromise1 started'); |
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 axios from 'axios'; | |
import aws4 from 'aws4'; | |
// https://docs.aws.amazon.com/general/latest/gr/rande.html | |
const endPoint = 'https://polly.ap-northeast-2.amazonaws.com'; | |
const data = { | |
OutputFormat: 'mp3', | |
SampleRate: '16000', | |
Text: 'hello', | |
TextType: 'text', |
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 styleObject = StyleSheet.create({ | |
merged: { | |
color: 'black', | |
fontSize: 11, | |
}, | |
black: { | |
color: 'black', | |
}, | |
smallFont: { |
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
{ | |
languageChoices.map(choice => ( | |
filterValues.languageCode === choice.id && | |
<Datagrid {...props} ids={this.state[choice.id]}> | |
<TextField source="text" /> | |
<ReferenceField source="contentId" reference="contents"> | |
<TextField source="title" /> | |
</ReferenceField> | |
<BooleanField source="keepable" /> | |
<TextField source="languageCode" /> |