• Python Lambdas e List Comprehension

    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)

    Read more…

  • Importando Chaves SSH Públicas do Github

    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! Permissions Both servers’ .ssh folder should be 700 chmod for […]

    Read more…