This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Text-to-Speech on OSX | |
| // run: swift speech.swift "東京特許許可局" | |
| // build: xcrun -sdk macosx swiftc speech.swift && ./speech "東京特許許可局" | |
| // | |
| // for OSX, use NSSpeechSYnthesizer in AppKit, | |
| // (for iOS, use AVSpeechSynthesizer in AVFoundation) | |
| // | |
| // 11/9/2016 -- Swift 3.0 | |
| import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Geocodes an address using Google API (limit 2500/day). | |
| * | |
| * @param string $address - Address to be geocoded. | |
| * @param string [$region=gb] - Region results are to biased to. | |
| * @return object {lat, lon, status, address}. | |
| */ | |
| function geocode($address, $region='gb') |