Skip to content

Instantly share code, notes, and snippets.

View FrayxRulez's full-sized avatar
💢

Fela Ameghino FrayxRulez

💢
  • Dubai, United Arab Emirates
View GitHub Profile
@FrayxRulez
FrayxRulez / agreement.md
Created October 23, 2017 08:55
Unigram Individual Contributor License Agreement

Unigram Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Unigram SE or its affiliates (“Unigram”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Unigram in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact team@unigram.me.

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to Unigram a non-exclusive, perpetual, irrev

@FrayxRulez
FrayxRulez / Background.cs
Last active March 4, 2016 16:28
Interactive toast notifications with Silverlight and Runtime 8.1 apps
using System;
using Windows.ApplicationModel.Background;
using Windows.Foundation.Collections;
using Windows.Foundation.Metadata;
namespace TestInteractive.Tasks
{
public sealed class InteractiveTask : IBackgroundTask
{
public void Run(IBackgroundTaskInstance taskInstance)
private async Task CropImage()
{
// Create destination file and obtain sharing token
var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("Cropped.jpg", CreationCollisionOption.ReplaceExisting);
var token = SharedStorageAccessManager.AddFile(file);
// Specify the app to launch using LaunchUriForResults
var options = new LauncherOptions();
options.TargetApplicationPackageFamilyName = "Microsoft.Windows.Photos_8wekyb3d8bbwe";
@FrayxRulez
FrayxRulez / Deploy.cs
Last active August 28, 2016 23:58
Deploy UWP apps to Windows 10 Mobile
// Initializes MultiTargetingConnectivity with current PC culture
var connectivity = new MultiTargetingConnectivity(Thread.CurrentThread.CurrentUICulture.LCID);
var devices = connectivity.GetConnectableDevices();
// Gets the first physical device attached to PC.
// WARNING: if more than a single device is connected to the PC deploy will fail.
var phone = devices.FirstOrDefault(x => !x.IsEmulator());
// PhoneProductId of the app, you can find it in your Package.appxmanifest
var package = Guid.Parse("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");