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
# -*- encoding: utf-8 -*- | |
if ARGV.size < 1 | |
exit 1 | |
else | |
tweet = ARGV[0].encode('UTF-8', 'Windows-31J') | |
end | |
# メッセージボックス表示 | |
require 'win32ole' |
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
class Jmp | |
def initialize(user, key, text) | |
@user = user | |
@key = key | |
@text = text | |
@urls = Hash.new() | |
end | |
def shorten | |
# 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
import os | |
import yaml | |
yaml_data = yaml.load(open(os.path.join(os.environ["USERPROFILE"],'.twitter'))) | |
#print yaml_data | |
import sys | |
if len(sys.argv) != 2: | |
raw_input('needs argument.') |
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
[COLOR] | |
FILE=657B83 | |
DIR=2AA198 | |
HIDE=586E75 | |
SYSTEM=657400 | |
RO=B72A27 | |
WINDOW=002B36 | |
CUR=FDF6E3 | |
CURBAK=D33682 | |
TEXT=93A1A1 |
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
@echo off | |
REM 引数チェック | |
if "%~2" == "" (goto USAGE) | |
set destAttribute=%~a1 | |
if not %destAttribute:~0,1%==d (goto USAGE) | |
REM シンボリックリンク作成先のディレクトリを取得 | |
set dest=%~1 | |
shift /1 |
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
def rootNode = getRootNode(node); | |
def iconMaps = [:]; | |
iconMaps = getIcons(rootNode, iconMaps); | |
createTodo(iconMaps, rootNode); | |
def createTodo(map, rootNode) { | |
map.each { key ,value -> | |
keyNode = createFirstNode(rootNode, key); | |
value.each { | |
createFirstNode(keyNode, it) |
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
//!*script | |
if ( PPx.DirectoryType == 96 || PPx.DirectoryType == 4 ) { | |
//UNxxx or listfile | |
PPx.Execute("%K\"@R\"") | |
} else { | |
if ( PPx.EntryFirstMark == 0 ) { | |
// マークがなかったらカーソルのエントリをリネーム。 | |
if(PPx.Extract("%T")) { | |
newfile = PPx.Extract('%"名前変更"%{%|%X%|.%T%}'); | |
} else { |
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
//!*script | |
// 直前のマークからカーソル位置までマーク | |
// PPx 1.45 x64 + Script Module R14 | |
var e = PPx.Entry; | |
// ディレクトリ内のエントリが一つの場合は何もしない | |
if (e.length < 2) PPx.Quit(); | |
var lastEntry = e.Index; // カーソル位置。ここまでマークする | |
e.LastMark; // 最後にマークしたエントリへカーソルを移動 |
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
//!*script | |
//PPx.StayMode = 1; | |
// Listfile を表示していなければ普通に BS | |
if (PPx.DirectoryType != 4) { | |
PPx.Execute("%K\"@BS\""); | |
PPx.Quit(); | |
} | |
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
//!*script | |
//PPx.StayMode = 1; //PPCがエラーで落ちる。 | |
file = PPx.Extract('%"ファイル作成"%!FCN'); | |
if (!file) { | |
PPx.Quit(); | |
} | |
PPx.Execute('*makefile ' + file); | |
PPx.Execute('*jumppath /refreshcache /entry:"'+ file + '"'); |
OlderNewer