Skip to content

Instantly share code, notes, and snippets.

View toricls's full-sized avatar
🐔
Cock a doodle doo

Tori Hara toricls

🐔
Cock a doodle doo
View GitHub Profile
@toricls
toricls / amazon-history.js
Created April 12, 2018 07:13 — forked from yociya/amazon-history.js
Amazonの注文履歴を年毎に集計して出力します 利用額 / 注文件数 / 最高額(1注文での) 使い方はコメントを参照
var historyUrl = 'https://www.amazon.co.jp/gp/css/order-history?orderFilter=year-$year$&startIndex=$index$';
function beforeSendHook(xhr){
xhr.setRequestHeader('X-Requested-With'
, {
toString: function(){
return '';
}
}
);
@toricls
toricls / auth.js
Created February 21, 2018 18:38
Very basic AWS Amplify auth in Vue (signup, signin, signout)
import Amplify, { Auth } from 'aws-amplify';
const types = {
AUTHENTICATE: 'AUTHENTICATE',
SIGNOUT: 'SIGNOUT',
SET_ATTRIBUTES: 'SET_ATTRIBUTES',
};
Amplify.configure({
Auth: {