Skip to content

Instantly share code, notes, and snippets.

View kingjay66's full-sized avatar

George T Washington kingjay66

  • Google Inc
  • Virginia
View GitHub Profile
@kingjay66
kingjay66 / PushNotifications.php
Created February 26, 2023 15:31 — forked from joashp/PushNotifications.php
Simple PHP script to send Android Push Notification, iOS Push Notification and Windows Phone 8 Push Notification
<?php
// Server file
class PushNotifications {
// (Android)API access key from Google API's Console.
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI';
// (iOS) Private key's passphrase.
private static $passphrase = 'joashp';
// (Windows Phone 8) The name of our push channel.
private static $channelName = "joashp";
@kingjay66
kingjay66 / QuickXorHash.cs
Created January 31, 2023 04:23
Sample code to generate the OneDrive Quick XOR Hash value for a file
// ------------------------------------------------------------------------------
// Copyright (c) 2016 Microsoft Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//