Skip to content

Instantly share code, notes, and snippets.

View Pandawan's full-sized avatar
🤡
Reinventing the entire web stack

Miguel Tenant de La Tour Pandawan

🤡
Reinventing the entire web stack
View GitHub Profile

This week’s question

You have to order wrapping paper for presents. Given the length, width, and height of the boxes you need to wrap, return the number of square feet (or whatever units you want) of wrapping paper you need to order. Extra credit: allow for other shapes of presents and their dimensions!

Example:

$ wrap(2, 3, 4)
52 square feet

My answer

### Keybase proof
I hereby claim:
* I am pandawan on github.
* I am pandawan (https://keybase.io/pandawan) on keybase.
* I have a public key ASCyDj0ToYnE1Ln0mHDlgxV1YbCTO0vADFmxf512XWznUAo
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 18i91YXsiKk45WCEA51tTSar81fnwDQeQh https://explorer.blockstack.org/address/18i91YXsiKk45WCEA51tTSar81fnwDQeQh
  1. Download the garlicoin binaries
  2. Compile cpuminer-multi
  3. Make ~/.garlicoin/garlicoin.conf and put this in it:
rpcuser=test
rpcpassword=test
rpcallowip=0.0.0.0/0
rpcport=42070

upnp=1
/* Poll Vote Buttons */
.TwitterCard .EdgeButton--secondary {
color: white !important;
background-color: transparent !important;
}
/* Poll Vote Buttons Hover */
.TwitterCard .EdgeButton--secondary:not([disabled]):hover {
color: white !important;
background-color: #1da1f2 !important;