Skip to content

Instantly share code, notes, and snippets.

View mariomeyrelles's full-sized avatar

Mario Meyrelles mariomeyrelles

  • São Paulo, Brazil
View GitHub Profile
@mariomeyrelles
mariomeyrelles / #blog-post:deploy-an-azure-function-app-connected-to-cosmos-db-with-secrets-on-key-vault-using-bicep
Last active January 28, 2022 17:31
Code samples from blog post: Deploy an Azure Function App connected to Cosmos DB with secrets on Key Vault using Bicep
Example of a complete deployment for a more complex app
trigger:
- master
pr: none
pool:
vmImage: 'ubuntu-latest'
variables:
- group: shared-variables
using LightBDD.Framework;
using LightBDD.Framework.Scenarios.Basic;
using LightBDD.Framework.Scenarios.Extended;
using LightBDD.MsTest2;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace ModeloCozinhaIndustrialExemplo2
{
using System;
using Xunit;
namespace ModeloCozinhaIndustrialExemplo2
{
public class PreparacaoOvoMexidoTests
{
[Fact]
public void Consigo_Fazer_Um_Ovo_Mexido()
{
}
using System;
using System.Collections.Generic;
namespace ModeloCozinhaIndustrial
{
class Program
{
public class Ingrediente
{
public string Nome;
@mariomeyrelles
mariomeyrelles / suave-2-logary-config.fsx
Created January 10, 2017 14:10
Configuring Suave 2.0 to use Logary
open System
open Suave
open Suave.Successful
open Suave.RequestErrors
open Suave.Operators
open Suave.RequestErrors
open Suave.Filters
open Suave.Logging
@mariomeyrelles
mariomeyrelles / Neo4jSerializationHelper.fsx
Last active July 21, 2016 12:18
A first idea on how to serialize an F# object and get a list of parameters to be used with Neo4j
type Neo4jParameterSerializer () =
member private this.readDateField (entity) (p: PropertyInfo) =
p.Name, (p.GetValue(entity) :?> DateTime).ToString("yyyy-MM-dd HH:mm:ss") :> obj
member private this.readSimpleField entity (p: PropertyInfo) = p.Name, p.GetValue(entity).ToString() :> obj
member private this.readUnionField entity (p:PropertyInfo) =
// todo: support more complex discriminated unions.
@mariomeyrelles
mariomeyrelles / 01_SayHello.fsx
Created June 15, 2016 20:37 — forked from akimboyko/01_SayHello.fsx
Samples from "Actor-based Concurrency with F# and Akka.NET" http://bit.ly/FSharpAkkaNET
#time "on"
#load "Bootstrap.fsx"
open System
open Akka.Actor
open Akka.Configuration
open Akka.FSharp
open Akka.TestKit
// #Using Actor