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
下記を管理者権限で実行(Windows8.1で動作確認済み) | |
C:\Windows\System32\schtasks.exe /run /tn \Microsoft\Windows\TextServicesFramework\MsCtfMonitor |
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: shift-jis -*- | |
# http://tsumo-blog.blogspot.jp/2012/03/windows.html から引用し、一部変更 | |
# 右クリックメニューから、ファイルやフォルダのパスをクリップボードに取得できるようになります | |
import sys | |
import os.path | |
def copyToClipboad( msStr ): | |
import win32clipboard | |
import win32con |
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
# main.py | |
# クリップボードに動画のURLをコピーしておいてから、run.batをクリックするとDLが開始されます | |
import os | |
import win32clipboard | |
ytdl = '\"C:\\bin\\youtube-dl.exe\" -f best ' | |
vdir = 'C:\\video' | |
def adjustURL(url): |
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
# main.py | |
import sys | |
import os | |
import os.path | |
import subprocess | |
import datetime | |
musicdir = 'C:\\music\\VLC' | |
vlc = 'C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe' |
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
import sys | |
from PySide import QtGui | |
app = QtGui.QApplication(sys.argv) | |
window = QtGui.QMainWindow() | |
window.show() | |
app.exec_() |
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
import sys | |
from PySide import QtCore, QtGui | |
app = QtGui.QApplication(sys.argv) | |
window = QtGui.QMainWindow() | |
label = QtGui.QLabel("QComboBox") | |
combo = QtGui.QComboBox() | |
layout = QtGui.QHBoxLayout() |
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
for %%i in ("%filename%") do set date=%%~ti | |
set date=%date:/=-% | |
set date=%date::=-% | |
set date=%date: =_% | |
echo date filename test > %date%.txt | |
pause |
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
# twitter multi pictures downloader for Python 2.7 | |
# 2015.07.25 | |
# @Carotene | |
# How to Use: | |
# 1. Copy to clipboard the twitter page url uploaded pictures more than 2. | |
# 2. Run this script with an argument of save directory. | |
from bs4 import BeautifulSoup | |
from argparse import ArgumentParser |
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: shift-jis -*- | |
# vcs converter | |
# 2015.09.23 | |
# @Carotene | |
# -d : save directory path of the output text file | |
# -i : input vcs file path | |
from argparse import ArgumentParser | |
import os, os.path, datetime, quopri |
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
# === base classes === | |
class OverrideProcessor(object): | |
def __init__(self,target_class): | |
self.method_names = tuple() # names tuple of override method | |
self.target_class = target_class # target class to override methods | |
self.reference_methods = {} # reference methods dict fot override target | |
self.setup() | |
self.do() |
OlderNewer