Skip to content

Instantly share code, notes, and snippets.

View kspaans's full-sized avatar

Kyle Spaans kspaans

View GitHub Profile
@kspaans
kspaans / keybase.md
Last active June 29, 2019 14:33
proving my identity with keybase.io

Keybase proof

I hereby claim:

  • I am kspaans on github.
  • I am kspaans (https://keybase.io/kspaans) on keybase.
  • I have a public key ASCnXZ6BG3Iq9Q5ZoVUgTy8IFcccfA3seeoX76uY7v8BcQo

To claim this, I am signing this object:

@kspaans
kspaans / gist:1195084
Created September 5, 2011 14:13
idiotic reverse of words in a list
while exists words:
if first word == second word:
exit()
i := start of first word
j := start of last word
if length of first word != length of last word:
MAGIC_SPECIAL_CASE()
len := length of first word
for len: swap(str[i++], str[j--])
bounds are now second word and second last word