This file contains 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
# Gregory Hogue (@gfjhogue) | |
# Python 3 | |
# | |
# Run this script as-is to generate iowa_results.csv from | |
# https://results.thecaucuses.org | |
import csv | |
import xml.etree.ElementTree as ET | |
import urllib.request as request |
This file contains 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
// WatchToPhoneDemo/WatchToPhoneDemo WatchKit Extension/InterfaceController.swift | |
class InterfaceController: WKInterfaceController { | |
var str: String = "Hello iPhone!" | |
@IBAction func button() { | |
let dict: Dictionary = ["message": str] | |
WKInterfaceController.openParentApplication(dict, reply: {(reply, error) -> Void in |