I hereby claim:
- I am michaelteter on github.
- I am michaelteter (https://keybase.io/michaelteter) on keybase.
- I have a public key whose fingerprint is B1CB 5A75 8AB1 C7FE FDAC 6D50 0025 FC55 B68D 4D47
To claim this, I am signing this object:
| #!/bin/bash | |
| # script name: repobak.sh | |
| # | |
| # Keep a separate backup of all your repos, and keep them synced periodically. | |
| # DO NOT make changes to any of these backed up repos locally; you want them pristine. | |
| # Do your development in a different folder with your repo, such as (~/work/<my_repo>). | |
| # | |
| # Consider adding this to your crontab: | |
| # 0 3 * * * /path/to/your/repobak.sh # run repobak at 3am daily. |
| # There are many ways to do this, but without knowing circumstantial constraints I chose simple/brute-force. | |
| def activities_by_location(activities): | |
| locations = {} | |
| for k,v in activities.items(): | |
| for location in v: | |
| if location not in locations: | |
| locations[location] = [] | |
| locations[location].append(k) | |
| return locations |
I hereby claim:
To claim this, I am signing this object:
| // Remember to add to Info.plist | |
| // App Transport Security Settings / Dictionary | |
| // Allow Arbitrary Loads / Boolean / YES | |
| // (or to be safer, use the Exception Domains subkey to be specific about which domains are allowed non-secure) | |
| import Alamofire | |
| // ... | |
| func example() { | |
| let url = URL(string: "http://pokeapi.co/api/v2/type/3/")! |
| Alamofire has recently been updated. Now it seems to support Swift 3 from its main (master) branch. | |
| Below are instructions that should work :) | |
| ------------------------------------------------------------------------------------------------ | |
| CURRENT INSTRUCTIONS --------------------------------------------------------------------------- | |
| 1. Install cocoapods | |
| $ sudo gem install cocoapods | |
| 2. create an xcode project |