This file contains 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
#!/bin/env bash | |
# | |
# Pomodoro script. | |
# | |
# Displays a notification after X minutes. | |
# | |
# Depends on libnotify-bin | |
main() { | |
minutes=$1 |
This file contains 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
from multiprocessing import Lock, Process, Queue | |
print_lock = Lock() | |
def square_producer(inputqueue, resultqueue): | |
"""A producer that pops numbers off the inputqueue, squares them and puts the | |
result on resultqueue | |
""" | |
while True: |
This file contains 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 | |
import os | |
import sys | |
import subprocess | |
import zipfile | |
#----------------------------------------------------------------------------- | |
def main(): | |
fileNames = sys.argv[1:] |