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
# Creates a functions that inputs the number of arrays, | |
# and a dict of number to string pairs. | |
# | |
# This is my attempt to pythonise the fizzbuzz algorithm | |
# such that it is dynamic, and you can put as many terms | |
# as you like with regular intervals. | |
# The default settings work such that the output would | |
# be a dict which the keys are initialised from 1 to 100, | |
# and the values would have 'fizz' in keys that have | |
# multiples of 3, and 'buzz' in keys that have multiples |
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/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# This is specifically built for SunOS 5.10. | |
# TODO: Stuck at: #error "Compiler or options invalid for pre-UNIX 03 X/Open | |
# applications and pre-2001 POSIX applications" during ncurses installation. | |
# May need to use an older ncurses version. |