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 datetime import date | |
| dt="2017-09-10T07:16:50Z" | |
| import datetime | |
| import dateutil.parser | |
| def toJpDateTimeFromISO8601String(s): | |
| d = dateutil.parser.parse(s) | |
| d = d + datetime.timedelta(hours=9) | |
| return d |
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
| import os | |
| import datetime | |
| import shutil | |
| desktop_path = os.environ['HOME'] + "/Desktop/" | |
| downloads_path = os.environ['HOME'] + "/Downloads/" | |
| days = 7 | |
| oldF_folder = "old/" | |
| def moveOldFiles(current_path,oldFolder,dasy): |
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 datetime import datetime | |
| def getYesterDay(): | |
| JST = timezone(timedelta(hours=+9), 'JST') | |
| d = datetime.now(JST) | |
| yesterday = str(d.year) +"-"+ str(d.month) +"-"+ str(d.day-1) | |
| print(yesterday) | |
| return yesterday |
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
| import datetime | |
| def getMinusDay(days): | |
| today = datetime.date.today() | |
| day = datetime.timedelta(days = days) | |
| return today - day | |
| print(getMinusDay(1)) |
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
| test |
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
| public class SpeedTest { | |
| private long start = System.currentTimeMillis(); | |
| public static void main(String[] args) { | |
| SpeedTest speedTest = new SpeedTest(); | |
| // some process | |
| speedTest.stopTimer(); | |
| } |
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 selenium import webdriver | |
| import logging | |
| import time | |
| import sys | |
| args = sys.argv | |
| _format = "%(asctime)s %(levelname)s %(name)s :%(message)s" | |
| logging.basicConfig(filename="moneyforward_reload_account.log", level=logging.DEBUG, format=_format) | |
| global driver | |
| driver = None |
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
| #! /bin/bash | |
| export DISPLAY=':0'; | |
| cd スクリプトのディレクトリ; | |
| python3 moneyforward_reload_accounts.py "@gmail.com" "password"; |
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
| #!/usr/bin/python2 | |
| # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| # Virtual Me2Me implementation. This script runs and manages the processes | |
| # required for a Virtual Me2Me desktop, which are: X server, X desktop | |
| # session, and Host process. | |
| # This script is intended to run continuously as a background daemon | |
| # process, running under an ordinary (non-root) user account. |
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
| import tweepy | |
| import webbrowser | |
| import urllib | |
| CONSUMER_KEY = "*****" | |
| CONSUMER_SECRET = "*****" | |
| def get_oauth_token(url:str)->str: | |
| querys = urllib.parse.urlparse(url).query |
OlderNewer