Skip to content

Instantly share code, notes, and snippets.

View igorkulman's full-sized avatar

Igor Kulman igorkulman

View GitHub Profile
public class UpdateService : IUpdateService
{
public async Task<UpdateInfo> CheckForUpdates()
{
try
{
bool restart = false;
string latestExe = "";
using (var mgr = new Squirrel.UpdateManager(@"http://x.y.z/AppName/Releases/"))
void canvasControl_Draw(CanvasControl sender, CanvasDrawEventArgs args)
{
args.DrawingSession.DrawText("Level:", 8, 8, Colors.Yellow);
args.DrawingSession.DrawImage(_playerBitmap, new Rect(_playerPosition.X * size, _playerPosition.Y * size, size, size), new Rect(0, 0, 16, 16), 1, CanvasImageInterpolation.NearestNeighbor);
}
@igorkulman
igorkulman / configuration.xml
Last active May 5, 2025 05:16
Office 2016 configuration to only install Word, Excel, PowerPoint and OneNote.
<!-- Office 365 client configuration file sample. To be used for Office 365 ProPlus 2016 apps,
Office 365 Business 2016 apps, Project Pro for Office 365 and Visio Pro for Office 365.
For detailed information regarding configuration options visit: http://aka.ms/ODT.
To use the configuration file be sure to remove the comments
For Office 365 client apps (verion 2013) you will need to use the 2013 version of the
Office Deployment Tool which can be downloaded from http://aka.ms/ODT2013
The following sample allows you to download and install Office 365 ProPlus 2016 apps
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
InputPane.GetForCurrentView().Showing += OnKeyboardShowing;
InputPane.GetForCurrentView().Hiding += OnKeyboardHiding;
}
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
{
<Grid Height="60"
Background="Transparent"
micro:Message.Attach="[Event Tapped] = [Action NavigateToEbooks]">
<ToolTipService.ToolTip>
<TextBlock Text="Ebooks"
x:Uid="EbooksTB" />
</ToolTipService.ToolTip>
<!-- icon -->
</Grid>
var ccu = new CameraCaptureUI();
var file = await ccu.CaptureFileAsync(CameraCaptureUIMode.Photo);
if (file != null)
{
await ProcessFile(file);
}
@igorkulman
igorkulman / aet.bat
Last active November 28, 2017 15:22
%ProgramFiles(x86)%\Microsoft SDKs\Windows Phone\v8.0\Tools\AETGenerator\AETGenerator.exe PFXFile Password
public partial class AppResources
{
private static readonly ResourceLoader _resourceLoader;
static AppResources()
{
_resourceLoader=new ResourceLoader();
}
internal AppResources()
<script src="https://hammerjs.github.io/dist/hammer.min.js"></script>
<script type="text/javascript">
window.onload = function() {
var hammertime = new Hammer(document.getElementById("text"));
hammertime.get('swipe').set({ direction: Hammer.DIRECTION_HORIZONTAL });
hammertime.on('swipeleft', function (ev) {
window.external.notify('left');
});
hammertime.on('swiperight', function (ev) {
window.external.notify('right');
Import-Module DeviceManagement.psd1
Get-Device | where {$_.name -like "Synaptics FP Sensors*"} | Disable-Device
Get-Device | where {$_.name -like "Synaptics FP Sensors*"} | Enable-Device