Skip to content

Instantly share code, notes, and snippets.

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

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 / 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 "
@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,
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 / NumberToString.lua
Last active January 22, 2017 10:43
Convert a number to equivalent string representation
NumberToString = (function ()
local insert, concat, floor, abs = table.insert, table.concat, math.floor, math.abs
local num, tens, bases = {
'one',
'two',
'three',
'four',
'five',
'six',
'seven',
@hjpotter92
hjpotter92 / gist:9802333
Last active August 29, 2015 13:57
hashes
d49fb3538ee71a430123
ea9e0d6b9053a8b1367b
@hjpotter92
hjpotter92 / .rcbash
Last active May 23, 2016 08:12
Git Bash profile settings.
source ~/git-prompt.sh
source ~/git-completion.bash
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true
export GIT_PS1_SHOWUPSTREAM=verbose
PS1=$'\[\e[0m\]\u250c\u2500[$([[ $? != 0 ]] && echo "\[\e[1;31m\]\u2717\[\e[0m\]" || echo "\[\e[1;32m\]\u2714\[\e[0m\]")]\u2500[\[\e[0m\]\[\e[1;36m\]\u\[\e[0m\]@\[\e[1;35m\]\h\[\e[0m\]]\u2500[\[\e[4;33m\]\W\[\e[0m\]]\u2500[\[\e[1;33m\]\@\[\e[0m\]]\[\e[0m\]$(__git_ps1)\n\[\e[0m\]\u2514\u2500\u2500\[\e[1;36m\]\$\[\e[0m\] '
# custom alias list
# ls, clear etc.
ADD 111
SUB 112
MOV 113
XOR 114
CMP 115
@hjpotter92
hjpotter92 / DISPSTR.asm
Last active December 22, 2015 16:09
2013-09-09: Read two strings and check whether one of them is a subtring of other or not
DISP_STR PROC
SAVE_REG <AX, CX, DX, SI>
MOV CX, BX
CLD
MOV AH, 2
DISP_LOOP:
LODSB
MOV DL, AL
INT 21H