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
tell application "Path Finder" | |
set theSelection to the selection | |
if theSelection is equal to missing value or the (count of items in theSelection) is 0 then | |
set theSelection to the name of the front window | |
return theSelection | |
else | |
return path of (item 1 of theSelection) | |
end if | |
end tell |
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
/**//**//**//**//**//**//* | |
** ================================================================================================== | |
** 类名:J.gbk | |
** 版本:1.0 | |
** 功能:URLEncode,URLDecode | |
** 示例: | |
--------------------------------------------------------------------------------------------------- | |
用法:参见组件地址 | |
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: utf-8 -*- | |
"""GA.py | |
遗传算法类 | |
""" | |
import random | |
from Life import Life |
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: utf-8 -*- | |
# | |
# Author: oldj | |
# Email: oldj.wu@gmail.com | |
# Blog: http://oldj.net | |
# | |
import os | |
import re | |
import StringIO |
OlderNewer