Whats the maximum number of virtual processor cores available in aws lambda
Memory: 3008 MB
import groovy.json.JsonSlurper | |
import groovy.json.JsonOutput | |
def jsonSlurper = new JsonSlurper() | |
def secrets = jsonSlurper.parse(new File(args[1] ?: "secrets.json")).clients.inject([:]) { map, c -> map[c.client] = c.secret; map } | |
def realm = jsonSlurper.parse(new File(args[0])) | |
for(client in realm.clients) { | |
if(secrets[client.clientId]) { |
// Our simple domain model | |
type Priority = | |
| Low | |
| Normal | |
| High | |
type Message = { | |
Text : string | |
Priority : Priority | |
} |
namespace HttpClient.FSharp | |
open System | |
open System.Net.Http | |
type HttpMethod = | |
| Post | |
| Put | |
| Delete | |
| Get |
namespace Newtonsoft.Json.Converters | |
open Microsoft.FSharp.Reflection | |
open Newtonsoft.Json | |
open System | |
type IdiomaticDuConverter() = | |
inherit JsonConverter() | |
[<Literal>] |
// Single case union | |
[<Struct>] type MHPI = MHPI of double | |
// An entity that contains SCU | |
type Entity = { | |
Foo: string | |
Bar: MHPI | |
} | |
// JSON.NET Converter |
namespace Infrastructure | |
open System.Text.Encodings.Web | |
open System.Text.Json | |
open System.Text.Json.Serialization | |
[<RequireQualifiedAccess>] | |
module JsonSerializer = | |
let private setupOptions (options: JsonSerializerOptions) = | |
options.PropertyNamingPolicy <- JsonNamingPolicy.CamelCase |
root = false | |
[**/**.{yml,ts,tsx,js,json,jsx,html}] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true |
# enable named panes | |
set -g pane-border-format "#{pane_index} #{pane_title}" | |
set -g pane-border-status bottom |
root = false | |
[**/**.yml] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
[**/**.ts] | |
indent_style = space | |
indent_size = 2 |