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/perl | |
| die "usage volume.pl NUMBER" if @ARGV == 0; | |
| $vol = $ARGV[0]; | |
| $command = 'sudo osascript -e "set Volume ' . $vol .'"'; | |
| system($command); |
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 python | |
| curnum = 2 | |
| nums = [] | |
| while True: | |
| prime = True | |
| for num in nums: | |
| if curnum % num == 0: | |
| prime = False |
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 python | |
| from littleworkers import Pool | |
| # Define your commands. | |
| commands = [ | |
| "cd repo1; git fetch", | |
| "cd repo2; git fetch", | |
| "cd repo3; git fetch", | |
| "cd repo4; git fetch", |
NewerOlder