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
protocol HeartRateDelegate { | |
func heartRateUpdated(heartRateSamples: [HKSample]) | |
} | |
var heartRateDelegate: HeartRateDelegate? | |
func createHeartRateStreamingQuery(_ workoutStartDate: Date) -> HKQuery? { | |
... |
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
var anchor: HKQueryAnchor? | |
func createHeartRateStreamingQuery(_ workoutStartDate: Date) -> HKQuery? { | |
guard let heartRateType: HKQuantityType = HKQuantityType.quantityType(forIdentifier: .heartRate) else { | |
print("Could not get heart rate type") | |
return nil | |
} | |
let datePredicate = HKQuery.predicateForSamples(withStart: workoutStartDate, | |
end: nil, |
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 | |
echo 'Hellow World'; |
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 | |
function my_admin_notification_profile_update($userid) { | |
$userdata = get_userdata($userid); | |
$message = "A user profile has been updated\n\n"; | |
$message .= print_r($userdata,true); | |
@wp_mail(get_option('admin_email'), 'User Profile Update', $message); | |
} |
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
<html> | |
<head><title>Test Snippet</title></head> | |
<body> | |
Hello World! | |
</body> | |
</html> |
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 | |
/** | |
* Add this snippet to your functions.php file | |
*/ | |
function my_admin_notification_profile_update($userid) { | |
$userdata = get_userdata($userid); | |
$message = "A user profile has been updated\n\n"; | |
$message .= print_r($userdata,true); | |
@wp_mail(get_option('admin_email'), 'User Profile Update', $message); |