I hereby claim:
- I am chrisrisner on github.
- I am risner (https://keybase.io/risner) on keybase.
- I have a public key whose fingerprint is 48D1 BF2E 0905 4113 7C37 90CA 41D2 6986 63AF B5C3
To claim this, I am signing this object:
| find . -type f -name '*.*' -exec sed -i '' s/echobot/mybot/ {} + | |
| find . -type f -name '*.*' -exec sed -i '' s/EchoBot/MyBot/ {} + | |
| find . -type f -name '*.*' -exec sed -i '' s/Echo-Bot/My-Bot/ {} + | |
| find . -type f -name '*.*' -exec sed -i '' s/echo-bot/my-bot/ {} + | |
| mv echobot.bot MyBot.bot | |
| mv EchoBot.csproj MyBot.csproj |
| public static NotificationHub instance; | |
| public static NotificationHub getNotificationHub (Activity activity) { | |
| NotificationsManager.handleNotifications(activity, SENDER_ID, NotificationHubsHelper.class); | |
| String hubName = "myhubname"; | |
| String connectionString = "myListenSharedAccessSignature"; | |
| instance = new NotificationHub(hubName, connectionString, activity); | |
| return instance; | |
| } |
| [StatelessWorker] | |
| public interface IPushNotifierGrain : Orleans.IGrain | |
| { | |
| Task SendMessage(string message, string recipient); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| foreach (var instance in RoleEnvironment.Roles["RoleName"].Instances) | |
| { | |
| foreach (var endpoint in instance.InstanceEndpoints) | |
| { | |
| endpoints += "instancename: " + endpoint.Key + "\n"; | |
| endpoints += "IPEndPoint: " + endpoint.Value.IPEndpoint + "\n"; | |
| endpoints += "Protocol: " + endpoint.Value.Protocol + "\n"; | |
| endpoints += "PublicIpEnd: " + endpoint.Value.PublicIPEndpoint + "\n"; | |
| endpoints += "RoleInstance: " + endpoint.Value.RoleInstance.ToString() + "\n"; | |
| } |
| private async Task AddHub(string address) | |
| { | |
| Trace.TraceInformation("AddHub: " + address); | |
| // create a connection to a hub | |
| var hubConnection = new HubConnection(address); | |
| hubConnection.Headers.Add("ORLEANS", "GRAIN"); | |
| var hub = hubConnection.CreateHubProxy("playerHub"); | |
| await hubConnection.Start(); | |
| hubs.Add(address, new Tuple<HubConnection, IHubProxy>(hubConnection, hub)); | |
| } |
| <uses-sdk | |
| android:minSdkVersion="16" | |
| android:targetSdkVersion="19" /> | |
| <uses-permission android:name="android.permission.INTERNET"/> | |
| <uses-permission android:name="android.permission.GET_ACCOUNTS"/> | |
| <uses-permission android:name="android.permission.WAKE_LOCK"/> | |
| <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
| <permission android:name="PACAKGE.permission.C2D_MESSAGE" android:protectionLevel="signature" /> |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; | |
| return YES; | |
| } | |
| - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { | |
| NSLog(@"APN device token: %@", deviceToken); | |
| NSString *deviceTokenString = [NSString stringWithFormat:@"%@",deviceToken]; | |
| 'urn:microsoft:credentials': { | |
| accessToken: ‘mytoken’ | |
| } |
| function insert(item, user, request) { | |
| request.execute({ success: function() { | |
| request.respond(200, item); | |
| var azure = require('azure'); | |
| var hub = azure.createNotificationHubService(process.env.NOTIFICATION_HUB_NAME, | |
| process.env.NOTIFICATION_HUB_FULL_ACCESS_SIGNATURE); | |
| var payload = { message: 'New message: ' + item.Text}; | |
| var tags = ''; | |
| if (item.Recipient !== '') | |
| tags = item.Recipient; |