Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Leonardo-Ferreira's full-sized avatar
🤔
Looking for OSS projects to contribute to

Leonardo Leonardo-Ferreira

🤔
Looking for OSS projects to contribute to
  • Edenred
  • São Paulo, Brazil
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Edenred.WhatIsMyAddress.Controllers
@Leonardo-Ferreira
Leonardo-Ferreira / Kusto_Compare-N-Last_Weeks.txt
Created August 16, 2021 22:38
Kusto Sample - Compare data from your current week-day to N-last-weeks
requests
| where timestamp > ago(90d)
| where dayofweek(timestamp) == dayofweek(now())
| summarize count() by bin(todatetime(strcat("20210101 ", format_datetime(timestamp,"HH:mm:ss"))),5m),tostring(week_of_year(timestamp))
| render timechart
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Edenred.Utils.Library.Logging;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace TestClients.Web.Controllers
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@Leonardo-Ferreira
Leonardo-Ferreira / gist:9d8b43f85c4f828cdc8ddc4f8f3a4bd3
Created April 11, 2019 18:52
JSON for buggy swagger-codegen genration
{
"openapi": "3.0.1",
"info": {
"title": "Credenciamento",
"description": "API que habilita parceiros a credenciarem ou habilitarem estabelecimentos para que comecem a aceitar produtos Ticket. \r\nCredenciamento é o processo onde XPTO. Habilitação é um outro processo que WYK. \r\nPara realizar um credenciamento, o paceiro inicia o processo chamando o método POST de '/api/credenciamento/'",
"version": "v1"
},
"paths": {
"/api/credenciamentos/{idCredenciamento}/adquirentes/{idAdquirente}": {
"get": {