Skip to content

Instantly share code, notes, and snippets.

View stedwick's full-sized avatar

Philip Brocoum stedwick

View GitHub Profile
@stedwick
stedwick / 3Box.txt
Created May 9, 2021 17:55
This post links my 3Box profile to my Github account
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreie7f2ikftexw6yynltzjrddujwl3tubkul5w6pne6hlshuilnjlxq ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
BEGIN MESSAGE.
mYMGK27iRWaazCD M4DLRzANTdLEQx2 egyG0gelL1xnqVf wqAh3o4ufNDTyvm
edlBqF3ZtrlWA76 hL3Lab1aOqzTCKq 6Xr2MZHgg6yBwtF 00Kplo5mk3uPHpy
vYUPmSQZECCGUs4 YbLQYKh5W5bzr46 YqVXYYQ17wXSrEp GLUWRcPOEulzmmh
8BooadJ5XETX81V gNoYqnVSmViT8uj 5FqtR0Qz5Z.
END MESSAGE.
@stedwick
stedwick / phils_flatten.rb
Last active June 15, 2018 23:27
Citrusbyte code sample: Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].
#!/usr/bin/env ruby
puts "Hello Citrusbyte!"
puts
puts "Run this file with `ruby phils_flatten.rb -v` and it will automatically run the Minitests."
puts "Also, generate the rdoc with `rdoc phils_flatten.rb` and open ./doc/PhilsFlatten.html."
puts
# Include this module in the Array class to add the method phils_flatten to arrays, which recursively flattens them.
#

Keybase proof

I hereby claim:

  • I am stedwick on github.
  • I am pbrocoum (https://keybase.io/pbrocoum) on keybase.
  • I have a public key ASB61o9GkShLEuwpMreb7loYd8e2FdajOkBaYky8aFd4zQo

To claim this, I am signing this object: