Skip to content

Instantly share code, notes, and snippets.

View angusbreno's full-sized avatar
Building Way2 services

Breno Santos angusbreno

Building Way2 services
View GitHub Profile
@angusbreno
angusbreno / btColored
Created January 22, 2015 01:40
Demo Main Tile (Switch Tile Color background) Win RT 8.1
// Just put diferent images (transparents and colored) and change like this...
private async void btColored_Tapped(object sender, TappedRoutedEventArgs e)
{
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
var assetsfolder = await folder.GetFolderAsync("Assets");
var file = await assetsfolder.GetFileAsync("squaretile-sdkWithColor.png");
var oldfile = await assetsfolder.GetFileAsync("squaretile-sdk.png");
@angusbreno
angusbreno / SplashActivity.cs
Created August 1, 2016 17:51
Splash Activity Recipe On Xamarin Forms
[Activity(
Label = "YourAppName",
//Theme = "@style/AppTheme.Splash",
MainLauncher = true, /////PUT THIS TO FALSE ON MAIN ACTIVITY
NoHistory = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation
)]
public class SplashActivity : AppCompatActivity
{
static readonly string TAG = "X:" + typeof(SplashActivity).Name;
@angusbreno
angusbreno / BlobHelper.cs
Last active January 19, 2018 12:55
UploadFile WebAPI - Client
using System;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace UploadImageTest
{
public class BlobHelper
{
@angusbreno
angusbreno / AzureBlobManagerService.cs
Last active January 19, 2018 12:53
UploadFile WebAPI - Server
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
namespace BiFrost.Service.Web.Services
{
public class AzureBlobManagerService : IAzureBlobManagerService
{
public void Initialize()
{
@angusbreno
angusbreno / blah.cs
Created October 30, 2018 14:33
Generic Procedurer Service
public interface IDataProcedureService
{
Procedure LoadProcedure(string procedure);
IEnumerable<T> Execute<T>(Procedure procedure);
}
public class Procedure
{
public Procedure(IDataProcedureService dataProcedureService)
@angusbreno
angusbreno / CTE.json
Last active August 3, 2020 15:14
STATUS NFSE CTE EXEMPLO
{
"documento": "0000150267",
"form": "NFCT",
"status_documento": "2",
"status_comunica": "0",
"ano_nf": "20",
"mês_nf": "07",
"modelo_nf": "57",
"num_nf": "330000026",
"empresa": "BR10",
@angusbreno
angusbreno / WorkSchedule_CRUD.json
Created September 3, 2020 17:52
HBLog WorkSchedule APIs
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "HBLOG WorkSchedule API"
},
"paths":{
"/api/WorkSchedule/getall": {
"get": {
"tags": [
@angusbreno
angusbreno / swagger.json
Created September 8, 2020 18:34
NFE_CTE/NFSE Integration
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "HBLOG Kernel API"
},
"paths": {
"/api/EventRealized/AttachProductEletronicInvoice": {
"get": {
"tags": [
@angusbreno
angusbreno / CosmosRepository.cs
Created September 30, 2020 17:16
Cosmos Tools SQL API
public class CosmosContainerRepository<TEntity> : IRepository<TEntity> where TEntity : IEntity<string>, IModifiable, new()
{
private readonly Container container;
public CosmosContainerRepository(Container container, Func<TEntity, PartitionKey> partitionKeyResolver)
{
this.container = container;
PartitionKeyResolver = partitionKeyResolver;
}
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "HBLOG Kernel API"
},
"paths": {
"/api/ElevationOrder/GetByLineUpId": {
"get": {
"tags": [