- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 实现任意地方拖拽
LRESULT COrthoDSDlg::OnNcHitTest(CPoint point){CRect rc;GetClientRect( &rc );ClientToScreen( &rc );return rc.PtInRect( point ) ? HTCAPTION: CDialog::OnNcHitTest( point );}
2012-03-30 16:30:09 405
原创 modify network adapter configuration parameters
#!/usr/bin/env python# -*- coding: cp936 -*-# Author: Jack# Purpose: modify network adapter configuration parameters# date: March 30,2012import wmiclass ModifyNetworkAd
2012-03-30 16:02:03 538
原创 batch change file name
#-------------------------------------------------------------------------------# Name: changeDirName# Purpose: change directory name## Author: wind## Created: 29-09-20
2012-03-27 14:25:35 731
原创 send mail
#!/usr/bin/env python# -*- coding: cp936 -*-#-------------------------------------------------------------#author: Jack_wind#purpose: The summary of three ways of send mails#time: 13th D
2012-03-27 14:19:22 760
原创 switch sentence
#!/usr/bin/env python# -*- coding: utf-8 -*-class switch(object): def __init__ (self,value): self.value=value self.fall=False def __iter__ (self): y
2012-03-27 14:17:21 367
原创 Calculation constellation
# -*- coding: cp936 -*-import os, time, stringdef isContainLetters(birthday): notrans = string.maketrans('', '') letterset = string.letters return len(letterset) != len(lett
2012-03-27 14:03:32 479
原创 os.path
import osprint(os.path.expanduser('~'))print(os.path.realpath(os.path.expanduser('~')))#print(os.path.isabs('F:\jack'))print(os.system('pause'))
2012-03-01 09:55:46 491
原创 Image process tools
#!/usr/bin/env python# -*- coding: cp936 -*-import gtkimport Imageimport sysimport itertoolsclass PyApp(gtk.Window, gtk.HScrollbar, gtk.VScrollbar): def __init__(self):
2012-03-01 09:45:11 882
原创 python打包成exe
import syssys.path[0] = 'C:\Python26\Lib\site-packages'from cx_Freeze import setup, Executablebase = Noneif 'win32' == sys.platform: base = 'Win32GUI' setup(name='Image Pro
2011-12-28 16:15:45 339
原创 linux下安装ActiveState Komodo IDE6
1. 进入目录下;2. tar jxvf ActiveState Komodo-IDE6 sudo ./install.sh -I/opt/Komodo-IDE6 ln -s "opt/Komodo-IDE6/bin/komodo" /usr/local/bin/komodo3. 运行程序,然后关闭;4. 把Komodo IDE的lic授权文件拷贝到/root/
2011-12-23 14:22:14 1547
原创 python 安装及设置默认
1. 下载python;2. 用tar jxvf python.tar.bz2解包;3. cd python 进入目录下;4. ./configure -enable-shared 或 ./configure --prefix=/opt/python;5. make6. make install7. cd /usr/bin进入目录下;8. rm -rf python;
2011-12-23 14:11:27 691
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人