Skip to content

Instantly share code, notes, and snippets.

View Syakyr's full-sized avatar

Syakyr Surani Syakyr

View GitHub Profile
@Syakyr
Syakyr / tmux_local_install.sh
Last active August 23, 2018 02:58 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access in Solaris/SunOS (in progress)
#!/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.
@Syakyr
Syakyr / fizzbuzz.py
Last active March 6, 2018 15:50
FIzzbuzz with Dynamic Inputs
# 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