Skip to content

Instantly share code, notes, and snippets.

View oldj's full-sized avatar
👨‍🚀
:-o

oldj oldj

👨‍🚀
:-o
View GitHub Profile
@oldj
oldj / com.cocoatech.PathFinder.scpt
Created March 11, 2015 11:24
Path Finder support for GhostNote
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
@oldj
oldj / gbk.js
Created January 6, 2015 03:16
GBK转码
/**//**//**//**//**//**//*
** ==================================================================================================
** 类名:J.gbk
** 版本:1.0
** 功能:URLEncode,URLDecode
** 示例:
---------------------------------------------------------------------------------------------------
用法:参见组件地址
@oldj
oldj / GA.py
Last active July 2, 2023 09:26
py-TSP
# -*- coding: utf-8 -*-
"""GA.py
遗传算法类
"""
import random
from Life import Life
# -*- coding: utf-8 -*-
#
# Author: oldj
# Email: oldj.wu@gmail.com
# Blog: http://oldj.net
#
import os
import re
import StringIO