Skip to content

Instantly share code, notes, and snippets.

View warnergodfrey's full-sized avatar

Warner Godfrey warnergodfrey

  • Melbourne, Australia
  • 00:03 (UTC +10:00)
View GitHub Profile
@codingricky
codingricky / Agile board.md
Last active March 15, 2018 02:26
Agile board

DiUS are keen on this "Agile" thing. We want to develop a tracking system for Agile cards.

Your application should cater for the following:

  • Be able to create cards. Cards have a title, description and estimate in points
  • Cards belong to an iteration
  • Assume a board has only one iteration at the moment
  • An iteration can have multiple columns. (It should have at least two, one starting and one done)
  • There is a column designated as the starting column. And one designated as the done column.
  • Columns have a name
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active April 13, 2024 12:22
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@denolfe
denolfe / solarized-dark-pantheon-terminal.sh
Last active March 16, 2017 01:14
Set pantheon-terminal's color scheme to be a better Solarized Dark
# Solarized Theme Pantheon Terminal
if [ "$(awk -F'[" ]' '/^ID=/{print $2,$3}' /etc/os-release)" = "elementary OS" ]
then
gsettings set org.pantheon.terminal.settings font 'Droid Sans Mono for Powerline 10'
gsettings set org.pantheon.terminal.settings background '#00002B2B3636'
gsettings set org.pantheon.terminal.settings foreground '#838394949696'
gsettings set org.pantheon.terminal.settings cursor-color '#838394949696'
#gsettings set org.pantheon.terminal.settings palette '#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3'
gsettings set org.pantheon.terminal.settings palette '#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#858599990000:#65657B7B8383:#26268B8BD2D2:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3'
gsettings set org.pantheon.termin
@codingricky
codingricky / gist:6502931
Last active February 8, 2019 14:14
DiUS Tennis Exercise

DiUS is hosting a tennis tournament. To aid with this, we're developing a scoring system.

The scoring system for tennis works like this.

  • A match has one set and a set has many games

  • A game is won by the first player to have won at least 4 points in total and at least 2 points more than the opponent.

    • The running score of each game is described in a manner peculiar to tennis: scores from zero to three points are described as 0, 15, 30, 40, respectively
@codingricky
codingricky / dius_bowling.md
Last active December 13, 2018 04:33
DiUS Bowling Exercise

DiUS is starting a bowling club. To help with the club, we have engaged you to program a scoring system.

The features on the system are:

  • One player only
  • In each frame, the bowler has 2 tries to knock down all the pins
  • If in 2 tries, the bowler fails to knock down all the pins, their score is the sum of the number of pins they've knocked down in the 2 attempts

E.g, if a bowler rolls, 4,4

@codingricky
codingricky / dius_shopping_coding.md
Last active June 25, 2019 17:09
DiUS Shopping Coding Exercise

DiUS is starting a computer store. You have been engaged to build the checkout system. We will start with the following products in our catalogue

SKU Name Price
ipd Super iPad $549.99
mbp MacBook Pro $1399.99
atv Apple TV $109.50
vga VGA adapter $30.00