This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| """ Cleaning script based on .gitignore file, the 'find' and 'rm' command. | |
| It removes files with .gitignore pattern. | |
| This script reads the .gitignore file, parses the patterns found there to a | |
| shell remove command and then executes it. | |
| - With the 'dirs' option it also removes directories. | |
| - With the 'debug' option it just prints the command it would execute and exits. |
NewerOlder