I hereby claim:
- I am javierchavez on github.
- I am javierc (https://keybase.io/javierc) on keybase.
- I have a public key whose fingerprint is 46AA 8AC6 CF9D A286 8D79 7B69 0B0E E903 16E2 2091
To claim this, I am signing this object:
| def create | |
| # when a create occurs somthing like this is sent to server with a POST request..... | |
| { | |
| "utf8"=>"✓", | |
| "authenticity_token"=>"some/crazy/token", | |
| "transaction"=>{"name"=>"chik-fil-a", | |
| "category_id"=>"1", | |
| "amount"=>"1.1"}, | |
| "commit"=>"Create Transaction" | |
| } |
I hereby claim:
To claim this, I am signing this object:
| class Building(object): | |
| """Building | |
| has many Elevators | |
| has many Floors | |
| """ | |
| def __init__(self, floors, elevators): | |
| super(Building, self).__init__() | |
| self.total_floors = floors |
| #!/bin/bash | |
| # vars | |
| [ -z "$NUM_WORKERS" ] && NUM_WORKERS=3 | |
| # init swarm (need for service command); if not created | |
| docker node ls 2> /dev/null | grep "Leader" | |
| if [ $? -ne 0 ]; then | |
| docker swarm init > /dev/null 2>&1 | |
| fi |