Skip to content

Instantly share code, notes, and snippets.

View rflechner's full-sized avatar

Flechner Romain rflechner

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradtraversy
bradtraversy / docker_wordpress.md
Last active July 25, 2024 16:24
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@amilos
amilos / bg-psd2.yaml
Last active May 24, 2024 08:01
Berlin Group PSD2 API specified in Openapi v3 format
openapi: 3.0.1
info:
title: BG PSD2 API
version: "1.2"
description: |
# Summary
The **NextGenPSD2** *Framework Version 1.2* offers a modern, open, harmonised and interoperable set of
Application Programming Interfaces (APIs) as the safest and most efficient way to provide data securely.
The NextGenPSD2 Framework reduces XS2A complexity and costs, addresses the problem of multiple competing standards
in Europe and, aligned with the goals of the Euro Retail Payments Board,
@vbfox
vbfox / Dapper.fs
Last active April 21, 2022 02:58
Minimal dapper in F#
module DapperFSharp =
open System.Data.SqlClient
open System.Dynamic
open System.Collections.Generic
open Dapper
let dapperQuery<'Result> (query:string) (connection:SqlConnection) =
connection.Query<'Result>(query)
let dapperParametrizedQuery<'Result> (query:string) (param:obj) (connection:SqlConnection) : 'Result seq =
@nagat01
nagat01 / clorets.fs
Created March 30, 2012 22:00
F# html and javascript generator
open System
type Html =
| Tag of string * Html list
| Attribute of string * string
| Content of string
override __.ToString() =
match __ with
| Tag (tag,htmls) ->
let mutable attributes = ""
@sgoguen
sgoguen / gist:1058974
Created July 1, 2011 17:09
EF CodeFirst - Generating a Database in F#
// This will generate a database, but EF will not materialize the objects
// because our types do not have default parameterless constructors
namespace DataModel
open System
open System.ComponentModel.DataAnnotations
open System.Data.Entity
type User = { mutable ID : int; mutable Name: string; mutable DB: DateTime; mutable Tasks: Task[];
mutable Projects: Project[] }
@panesofglass
panesofglass / TcpServer.fsx
Created January 4, 2011 17:43
Asynchronous TCP server in F#
// [snippet: Async socket server using F# async computations.]
open System
open System.IO
open System.Net
open System.Net.Sockets
open System.Threading
type Socket with
member socket.AsyncAccept() = Async.FromBeginEnd(socket.BeginAccept, socket.EndAccept)