replaced 4 spaces tabs for 2 spaces tab

This commit is contained in:
Francis Lavoie 2013-05-21 18:03:03 -04:00
parent 02a8a66424
commit db0eda65bc
4 changed files with 22 additions and 23 deletions

View File

@ -1,6 +1,5 @@
# beautify json string
# use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
function pybeautifyjson
echo $argv | python -mjson.tool
end
echo $argv | python -mjson.tool
end

View File

@ -1,10 +1,10 @@
# clean current directory recursively from any .pyc and .pyo files
function pyclean
if test -n $argv
set path2CLEAN $argv
else
set path2CLEAN .
end
if test -n $argv
set path2CLEAN $argv
else
set path2CLEAN .
end
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
end
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
end

View File

@ -1,9 +1,9 @@
# start in-place a simple http server, take a optional parameter for the port number
function pyhttp
if test -n "$argv"
set HTTPPORT $argv
else
set HTTPPORT 1025
end
python -m SimpleHTTPServer $HTTPPORT;
if test -n "$argv"
set HTTPPORT $argv
else
set HTTPPORT 1025
end
python -m SimpleHTTPServer $HTTPPORT;
end

View File

@ -1,10 +1,10 @@
# start smtp debugging server, can pass an option port parameter. Default to 1025
function pysmtp
if test -n "$argv"
set SMTPPORT $argv
else
set SMTPPORT 1025
end
echo "smtp server started on port" $SMTPPORT;
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
if test -n "$argv"
set SMTPPORT $argv
else
set SMTPPORT 1025
end
echo "smtp server started on port" $SMTPPORT;
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
end