Skip to content

Instantly share code, notes, and snippets.

math.randomseed( os.time() )
local Random, Read, Write = math.random, io.read, io.write
Write "Number of players -> "
local tPlayers, iNumPlayers = {}, Read '*n'
Write "How many rounds? -> "
local iRounds = Read '*n'
io.input():flush()
@hjpotter92
hjpotter92 / preferences.sublime-settings
Last active June 8, 2016 10:42
Sublime Text 2 user settings
{
"auto_complete_commit_on_tab": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"close_windows_when_empty": true,
"default_line_ending": "unix",
"dictionary": "Packages/Language - English/en_UK.dic",
"ensure_newline_at_eof_on_save": true,
"font_face": "Consolas",
"font_size": 10,
@hjpotter92
hjpotter92 / SpellNumber.vbs
Created March 20, 2021 07:46
SpellNumber function for excel
Option Explicit
' Converts a number from 100-999 into text
Function GetHundreds(ByVal MyNumber)
Dim Result As String
If Val(MyNumber) = 0 Then Exit Function
MyNumber = Right("000" & MyNumber, 3)
' Convert the hundreds place.
If Mid(MyNumber, 1, 1) <> "0" Then
Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "

Keybase proof

I hereby claim:

  • I am hjpotter92 on github.
  • I am hjpotter92 (https://keybase.io/hjpotter92) on keybase.
  • I have a public key ASDhAUbOrJrr42KSvr16FYe-V7LbKGVLcz5dWYZ6E2GAQgo

To claim this, I am signing this object:

@hjpotter92
hjpotter92 / README.md
Last active April 7, 2023 03:38
GCP storage schema with descriptions