I hereby claim:
- I am cmonaghan on github.
- I am cmonaghan (https://keybase.io/cmonaghan) on keybase.
- I have a public key ASB-hLgi902dRvjEanMT6IfZHdlDNHriY4RcqtcndvFcOwo
To claim this, I am signing this object:
#!/bin/bash | |
# Before running this script, be sure to set the secrets | |
# export TFC_TOKEN=secret_token | |
# export DD_API_KEY=another_secret | |
# export AGENT_POOL_ID=some_id | |
idle_agent_count=$(curl \ | |
--header "Authorization: Bearer $TFC_TOKEN" \ | |
--header "Content-Type: application/vnd.api+json" \ | |
--request GET \ |
I hereby claim:
To claim this, I am signing this object:
var readifyNumbers = function(number) { | |
/* READIFYNUMBERS ASSUMPTIONS: | |
- Numbers will have typeof number or string | |
- No commas (expects format to be: 1500000) | |
*/ | |
// throw error for any parameter input that is not a number and cannot be converted into a number | |
if (Number(number).toString() === 'NaN') { | |
throw 'Error. The readifyNumbers input parameter must be a number.'; | |
} |