I hereby claim:
- I am rjrbt on github.
- I am rjrbt (https://keybase.io/rjrbt) on keybase.
- I have a public key ASD2lQc2rKmx7Qt9EiZhTqGyjMhLkSL2UKbo3tNAwlGw-wo
To claim this, I am signing this object:
// Shannon Entropy example from a post on Functionally Imperative | |
// https://functionallyimperative.com/t/entropy | |
package main | |
import ( | |
"crypto/rand" | |
"fmt" | |
"math" | |
) |
package main | |
import "fmt" | |
func main() { | |
your := make(chan func(), 1) | |
go func() { your <- self }() | |
(<-your)() | |
} |
""" | |
This is a toy version of recursive function I wrote to update a value in an arbitrary | |
place in a nested dictionary. | |
I originally wrote something similar to this to handle writing to a TOML file | |
so that I could use a CLI tool such as | |
`my_tool set a.b.c.d hello` and it would write: | |
[a] | |
[a.b] | |
[a.b.c] |
aws s3api list-object-versions \ | |
--bucket "${BUCKET}" \ | |
--prefix "${PREFIX}" \ | |
--output text | grep "DELETEMARKERS" | while read obj | |
do | |
KEY=$( echo "${obj}"| awk '{print "${3}"}') | |
VERSION_ID=$( echo "${obj}" | awk '{print "${5}"}') | |
echo "${KEY}" | |
echo "${VERSION_ID}" | |
aws s3api delete-object \ |
package main | |
import ( | |
"fmt" | |
"math/big" | |
"sync/atomic" | |
) | |
func main() { | |
start := 1000000001 |
# grab the version number from package.json | |
awk '/version/{ gsub(/"|[",]/,""); print $2; exit;}' package.json |
I hereby claim:
To claim this, I am signing this object:
var currentUser = { | |
'firstName': Parse.User._currentUser.get("firstName"), | |
'lastName': Parse.User._currentUser.get("lastName"), | |
'email' : Parse.User._currentUser.getEmail(), | |
'fullName': function() {return this.firstName + " " + this.lastName} | |
}; | |
$zopim.livechat.setName(currentUser.fullName()); | |
$zopim.livechat.setEmail(currentUser.email); |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": "arn:aws:s3:::*" | |
}, |