Um modo de criar novas listas no python utilizando List Comprehension
new_list = [apply(i) for i in old_list if filter(i)]
Com Lambdas
Também podemos utilizar lambdas para mapear listas em novas listas.
new_list = map(lambda v : v * 5, old_list)
Um modo de criar novas listas no python utilizando List Comprehension
new_list = [apply(i) for i in old_list if filter(i)]
Também podemos utilizar lambdas para mapear listas em novas listas.
new_list = map(lambda v : v * 5, old_list)
When setting up a new development server, we usually add our public ssh key to ~/.ssh/authorized_keys file.
Github has a pretty nice feature, change your nick from the below url and send it contents to authorized_keys with curl command:
curl https://github.com/waldirbertazzijr.keys > ~/.ssh/authorized_keys
Simple as that!
Both servers’ .ssh folder should be 700 chmod for this to work.
Don’t forget this one.