Skip to content

Instantly share code, notes, and snippets.

@y-o-u
y-o-u / untitled0.ipynb
Created December 9, 2021 06:47
Untitled0.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@y-o-u
y-o-u / pdfminerで英語pdfのテキストを抽出
Created December 8, 2021 07:40
pdfminerで英語pdfのテキストを抽出
Chaos Engineering:
Finding Failures Before
They Become Outages
Chaos Engineering: Breaking Your Systems for Fun and Profit
D
@y-o-u
y-o-u / pdfminerで日本語を抽出
Created December 8, 2021 07:32
pdfminerで日本語を抽出
技能実習生のための日本語みどり
『技能実習生のための日本語 みどり』について
1.はじめに ~「みどり」がめざすこと~
『技能実習生のための日本語 みどり』(以下、「みどり」)は、技能実習生に対する日本語学習
のための教材です。講習の主教材としてのほか、継続学習等でも使えますので、ダウンロードしてご
@y-o-u
y-o-u / indesign_srv.wsdl
Created December 3, 2021 07:24
Adobe InDesign Server WSDL
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Service"
targetNamespace="http://localhost:80/Service.wsdl"
xmlns:tns="http://localhost:80/Service.wsdl"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:IDSP="http://ns.adobe.com/InDesign/soap/"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
function login(email, password, callback) {
const AWS = require('aws-sdk@2.1.31');
global.fetch = require('node-fetch');
const AmazonCognitoIdentity = require('amazon-cognito-identity-js@3.0.14');
const authenticationData = {
Username: email,
Password: password,
};
const authenticationDetails = new AmazonCognitoIdentity.AuthenticationDetails(
function login(email, password, callback) {
const request = require('request');
const jwt = require('jsonwebtoken');
//const region = configuration.region;
const clientId = configuration.clientId;
const userPoolId = configuration.userPoolId;
let userData = {
"AuthParameters": {
"USERNAME": email,
@y-o-u
y-o-u / auth0-mfa-email-associate.js
Created January 10, 2020 11:11
auth0-mfa-email-associate
var request = require("request");
const AWS = require('aws-sdk');
AWS.config.update({ region: 'ap-northeast-1' });
const client_id = process.env['client_id'];
const encrypted_client_secret = process.env['client_secret'];
let decrypted_client_secret;
const audience = process.env['audience'];
const scope = process.env['scope'];
const api_domain = process.env['api_domain'];