Posts Tagged ‘programming’
This tutorial discusses some techniques of functional programming that might be of interest to mathematicians or people who use Python for scientific computation. We first start off with a brief overview of procedural and object-oriented programming, and then discuss functional programming techniques. Along the way, we briefly review Python’s built-in support for functional programming, including [...]
Filed under: Python, Sage, mathematics, primer, programming | 1 Comment
Tags: functional programming, mathematics, primer, programming, Python, Sage, tutorial
Rename Multiple Files in Bash
Here’s a quick tip for renaming multiple files with the same name <name> but different extensions <ext>. You want to retain the extensions and only change <name> to <new-name>.
for i in `ls`; do
mv -fv “$i” `ls “$i” | sed ’s/././’`
done
Filed under: primer, programming | Leave a Comment
Tags: bash, primer, programming
30 years of C by Landon Dyer — Some rules on good programming practices.
Digging Yourself Out of A Debugging Hole by Martin Aspeli — General debugging tips and using programming/debugging tools.
Flymake Mode for Emacs / Python — Flymake, an on-the-fly Python syntax checker for Emacs.
pep8 – Python style guide checker — Checking Python code against [...]
Filed under: Python, programming | Leave a Comment
Tags: debugging, Emacs, Flymake, pep8, programming, Python