Skip to content

Instantly share code, notes, and snippets.

name: Deploy to App Engine
on:
release:
types: [created]
jobs:
deploy:
runs-on: [ubuntu-latest]
steps:
### Keybase proof
I hereby claim:
* I am luizbon on github.
* I am luizbon (https://keybase.io/luizbon) on keybase.
* I have a public key ASCJKrrnDX2WZJvUYjqy7ylcPhLePCV01rYNtHV0ixr6-wo
@luizbon
luizbon / Create Package.ps1
Created July 5, 2015 11:36
WinRT build package script
Import-Module -Name ".\Invoke-MsBuild.psm1"
Function BumpWMAManifest($version) {
Get-ChildItem ".\" -recurse -exclude *Bin* -Filter WMAppManifest.xml | `
ForEach-Object {
$fullName = $_.FullName
Write-Host "Updating the Store App Package '$fullName' to version ' $version '"
$xml = [xml](Get-Content $fullName)
$node = $xml.Deployment.App
@luizbon
luizbon / Service.cs
Created May 31, 2015 02:31
IStorageFolder Service
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.Storage.Search;
using Caliburn.Micro;
using Newtonsoft.Json;
namespace FileStorage
{
@luizbon
luizbon / gist:d96bd265bc4b26a6ccd1
Created February 1, 2015 16:44
Calling async method from sync method
void MyMethod(){
MyMethodAsync().Result;
}
async Task MyMethodAsync(){
await MyExternalResourceAsync().ConfigureAwait(false);
}
@luizbon
luizbon / english.cs
Last active August 29, 2015 14:14
Async code with deadlock
void MyMethod(){
MyMethodAsync().Result;
}
async Task MyMethodAsync(){
await MyExternalResourceAsync(); //Your code will hang here
}
@luizbon
luizbon / gist:4196776
Created December 3, 2012 18:06
PagedList issue #40
[Fact]
public void PageNumber_Above_RecordCount_Returns_Empty_List2()
{
//arrange
var data = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var page = 1;
var pageSize = 2;
//act