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 Alexa = require('alexa-sdk'); | |
const request = require('request'); | |
exports.handler = function(event, context, callback) { | |
const requestBody = { | |
"grant_type": "client_credentials", | |
"client_id": process.env.clientid, | |
"client_secret": process.env.secret, |
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 awsIot = require('aws-iot-device-sdk'); | |
const device = awsIot.device({ | |
keyPath: '9xxxx9x999-private.pem.key', | |
certPath: '9xxxx9x999-certificate.pem.crt', | |
caPath: 'root.pem', | |
clientId: 'iotTest', | |
host: 'endpoint.iot.ap-northeast-1.amazonaws.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
using System; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Security.Cryptography.X509Certificates; | |
using uPLibrary.Networking.M2Mqtt; | |
using uPLibrary.Networking.M2Mqtt.Messages; | |
private const string IotEndpoint = "endpoint.iot.ap-northeast-1.amazonaws.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
import React from "react"; | |
import gql from "graphql-tag"; | |
import { graphql } from "react-apollo"; | |
const ArticleItem = ({ article }) => ( | |
<li style={{ width: 600 }}> | |
<h3>{article.title}</h3> | |
</li> | |
); |
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 { ApolloClient } from 'apollo-client'; | |
import { HttpLink } from 'apollo-link-http'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
import { ApolloProvider } from 'react-apollo'; | |
import ArticleList from './ArticleList'; | |
const link = new HttpLink({ | |
uri: 'https://api.graph.cool/simple/v1/xxxxxxxx99x9x99999xx99xxx', |
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 stripe = require("stripe")(process.env.SK); | |
exports.handler = (event, context, callback) => { | |
console.log("Received event:", JSON.stringify(event, null, 2)); | |
const done = (err, res) => callback(null, { | |
statusCode: err ? "400" : "200", | |
body: err ? err.message : JSON.stringify(res), | |
headers: { |
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 Alexa = require("alexa-sdk"); | |
const QueryKintoneRecords = require("./QueryKintoneRecords"); | |
const queryKintoneRecords = new QueryKintoneRecords.QueryKintoneRecords( | |
process.env.KINTONE_SUBDOMAIN, process.env.KINTONE_APP_ID, process.env.KINTONE_API_TOKEN); | |
let kintoneData = {}; | |
exports.handler = function (event, context, callback) { | |
queryKintoneRecords.queryRecords("") | |
.then((records) => { |
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'; | |
var Alexa = require('alexa-sdk'); | |
var https = require('https'); | |
var querystring = require('querystring'); | |
//========================================================================================================================================= | |
//TODO: このコメント行より下の項目に注目してください。 | |
//========================================================================================================================================= | |
//Replace with your app ID (OPTIONAL). You can find this value at the top of your skill's page on http://developer.amazon.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
import React, { Component } from "react"; | |
import PropTypes from "prop-types"; | |
import loadScript from "load-script"; | |
let scriptLoadingStarted = false; | |
export default class GoogleChooser extends React.Component { | |
static propTypes = { | |
children: PropTypes.node, | |
onChange: PropTypes.func, |
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
// @flow | |
import React from "react"; | |
import { render } from "react-dom"; | |
import Picker from "./Picker"; | |
(function () { | |
kintone.events.on(["app.record.create.show", "app.record.edit.show"], (event: Kintone.RecordEvent) => { | |
const elm = kintone.app.record.getSpaceElement("space1"); |