This file contains hidden or 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
| var buttonHTML = '<input type="button" value="TO/RE 無効化" />'; | |
| var replaceToText = function () { | |
| var taskContentTextArea = $('#_taskNameInput'); | |
| var orgText = taskContentTextArea.val(); | |
| var replacedText = orgText.replace(/\[To\:.*\]/g, 'TO '); | |
| replacedText = replacedText.replace(/\[返信.*\]/g, 'RE ') | |
| taskContentTextArea.val(replacedText); | |
| } | |
| $(buttonHTML).appendTo('div.addTaskContainer__submitContainer') | |
| .click(replaceToText); |
This file contains hidden or 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
| require 'google/apis/drive_v3' | |
| require 'googleauth' | |
| require 'googleauth/stores/file_token_store' | |
| require 'fileutils' | |
| OOB_URI = 'urn:ietf:wg:oauth:2.0:oob' | |
| APPLICATION_NAME = 'Drive API Ruby Quickstart' | |
| CLIENT_SECRETS_PATH = 'client_secret.json' | |
| # ファイル名もgoogle serviceの名前に合わせて変更する。(この名前は任意の値でOK) |
This file contains hidden or 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 fs = require('fs'); | |
| const readline = require('readline'); | |
| const google = require('googleapis'); | |
| const googleAuth = require('google-auth-library'); | |
| // If modifying these scopes, delete your previously saved credentials | |
| // at ~/.credentials/sheets.googleapis.com-nodejs-quickstart.json | |
| const SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly']; | |
| const TOKEN_DIR = (process.env.HOME || process.env.HOMEPATH || | |
| process.env.USERPROFILE) + '/.credentials/'; |
This file contains hidden or 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
| from vidgear.gears import VideoGear | |
| import numpy as np | |
| import cv2 | |
| def center_crop(img, dim): | |
| if img is None: | |
| return None | |
| width, height = img.shape[1], img.shape[0] |