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
/* Amplify Params - DO NOT EDIT | |
You can access the following resource attributes as environment variables from your Lambda function | |
var environment = process.env.ENV | |
var region = process.env.REGION | |
Amplify Params - DO NOT EDIT */ | |
const AWS = require('aws-sdk'); | |
const S3 = new AWS.S3(); |
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
{ | |
"data": { | |
"0": { | |
"values": { | |
"sushi": 99, | |
"tempura": 8, | |
"inu": 11 | |
} | |
} | |
} |
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
{ | |
"data": { | |
"0": { | |
"values": "Array of length 3" | |
} | |
} | |
} |
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
#!/usr/bin/env python2.7 | |
#-*- coding:utf-8 -*- | |
import tweepy | |
from tweepy.streaming import StreamListener | |
from tweepy import Stream | |
import sys | |
import urllib2 |
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
# coding: utf-8 | |
# Python 3.4.3 | |
# tweepy 3.3.0 | |
#中略 | |
api = tweepy.API(auth_handler=auth) | |
s = api.get_status(607174780312158208) |
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
#codinf: utf-8 | |
# python 3.4.3 | |
# tweepy 3.3.0 | |
import sys | |
import tweepy | |
import shelve | |
dic = shelve.open('account') |
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
<?PHP | |
#初期設定を共通化して手間を省く(hogeとfoo,barは差し替え必須) | |
define('CONSUMER_KEY', 'hogehogehoge'); | |
define('CONSUMER_SECRET','foofoofoo'); | |
define('OAUTH_CALLBACK', 'http://localhost/barbarbarbar/callback.php'); | |
?> |
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
<html> | |
<head> | |
<title>Tweet</title> | |
</head> | |
<body> | |
<pre> | |
<?php | |
session_start(); | |
require "twitteroauth/autoload.php"; |
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
<html> | |
<head> | |
<title>Callback</title> | |
</head> | |
<body> | |
<?php | |
session_start(); | |
require "twitteroauth/autoload.php"; | |
use Abraham\TwitterOAuth\TwitterOAuth; |