Skip to content

Instantly share code, notes, and snippets.

View wujiyu115's full-sized avatar
🎯
Focusing

farwmarth wujiyu115

🎯
Focusing
View GitHub Profile
@wujiyu115
wujiyu115 / install-oh-my-zsh-on-ubuntu
Last active December 9, 2016 07:03 — forked from richardtape/install-oh-my-zsh-on-ubuntu
Install Oh My ZSH on Ubuntu 14.04
# Where is the location of your current shall. Useful if we need to revert
echo $0
# Install ZSH
sudo apt-get install zsh
# Instal GIT
sudo apt-get install git-core
# Install OhMyZSH
@wujiyu115
wujiyu115 / xls3.py
Last active March 29, 2016 04:58
xls3.py
# coding:utf-8
'''
xls文件导出工具
将会把指定的excel目录下的所有xls文件转成需要的文件(这里直接转成了代码文件方便使用)
对xls文件的要求:
第一行:无用 备注等
第二行:类型 int float string struct
@wujiyu115
wujiyu115 / python:batch_rename
Last active March 28, 2016 01:16
python:batch_rename
import sys
import os
def BatchRename(path):
#设置路径
os.chdir(path)
fileList = os.listdir(path)
for root,subdirs,files in os.walk(path):
for fileItem in files:
@wujiyu115
wujiyu115 / lua:package_path
Created March 28, 2016 01:13
lua:package_path
local p = "E:/work/client/trunk/heroPro/src/logic/"
local m_package_path = package.path
package.path = string.format("%s;%s?.lua;%s?/init.lua",
m_package_path, p, p)
@wujiyu115
wujiyu115 / 添加右键导单个xls_export.bat
Created March 21, 2016 10:14
@echo off rem reg add HKEY_CLASSES_ROOT\Python.File\shell\Pyc\command /v "" /t REG_SZ /d "\"C:\Python27\python.exe\" \"%~dp0xls_export.py\" \"%%1\"" /f rem reg add HKEY_CLASSES_ROOT\Python.File\shell\Pyc\command /v "" /t REG_SZ /d "\"C:\Python27\python.exe\" \"%~dp0test.py\" \"%%1\"" /f set CUR_PATH=%~dp0 set BAT_NAME=C:\Windows\xls_export.bat …
@echo off
rem reg add HKEY_CLASSES_ROOT\Python.File\shell\Pyc\command /v "" /t REG_SZ /d "\"C:\Python27\python.exe\" \"%~dp0xls_export.py\" \"%%1\"" /f
rem reg add HKEY_CLASSES_ROOT\Python.File\shell\Pyc\command /v "" /t REG_SZ /d "\"C:\Python27\python.exe\" \"%~dp0test.py\" \"%%1\"" /f
set CUR_PATH=%~dp0
set BAT_NAME=C:\Windows\xls_export.bat
set PATHON_NAME=xls_export.py
set BAT_REGISTER=C:\Python27\python.exe %CUR_PATH%%PATHON_NAME% %%*
echo %BAT_REGISTER%>%BAT_NAME%
echo pause>>%BAT_NAME%
@wujiyu115
wujiyu115 / xls_export.py
Created March 21, 2016 09:46
xls_export
# coding:utf-8
'''
xls文件导出工具
将会把指定的excel目录下的所有xls文件转成需要的文件(这里直接转成了代码文件方便使用)
对xls文件的要求:
第一行:无用 备注等
第二行:类型 int float string struct
@wujiyu115
wujiyu115 / formulautil.lua
Last active January 29, 2016 09:55
lua5.3:formulautil
-- @Author: wujiyu
-- @Date: 2015-11-26 14:14:18
-- @Last Modified by: wujiyu
-- @Last Modified time: 2015-12-11 19:53:20
-- 表复制
local tableutil = require "public/util/tableutil"
local _e = {}
_e.print=print
_e.pairs=pairs
@wujiyu115
wujiyu115 / formulautil.lua
Last active January 29, 2016 09:55
lua5.1:formulautil
-- @Author: wujiyu
-- @Date: 2015-11-26 14:14:18
-- @Last Modified by: wujiyu
-- @Last Modified time: 2015-12-11 19:53:20
-- 表复制
local tableutil = require "tableutil"
local _e = {}
_e.print=print
_e.pairs=pairs
@wujiyu115
wujiyu115 / downblogimg.py
Last active January 13, 2016 08:13
python:downblogimg
# -*- coding:utf-8 -*-
import os
import os.path
import re
import logging
import json
import requests
import errno
postFileSuffix = ".md"
@wujiyu115
wujiyu115 / Shell
Last active August 29, 2015 14:20 — forked from bnnd/Shell
shell实例手册
0说明{
手册制作: 雪松
更新日期: 2014-10-29
欢迎系统运维加入Q群: 198173206 # 加群请回答问题
欢迎运维开发加入Q群: 365534424 # 不定期技术分享
请使用"notepad++"打开此文档,"alt+2"将函数折叠后方便查阅