This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
version: "3" | |
services: | |
db: | |
image: postgres:16.2 | |
restart: always | |
ports: | |
- "15432:5432" | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module View.Grid exposing (view) | |
import Element exposing (Element, column, el, fill, row, spacing, width) | |
import List.Extra | |
type alias Config = | |
{ itemsPerRow : Int | |
, horizontalSpacing : Int | |
, verticalSpacing : Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Array { | |
func inserted(_ element: Element, at index: Int) -> Array<Element> { | |
return updated({$0.insert(element, at: index)}) | |
} | |
func appended(_ element: Element) -> Array<Element> { | |
return updated({$0.append(element)}) | |
} | |
func appended(contentsOf elements: Array<Element>) -> Array<Element> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Cursor exposing (cursor, Cursor(..)) | |
import Element exposing (Element, Attribute, htmlAttribute) | |
import Html.Attributes | |
cursor : Cursor -> Attribute msg | |
cursor cursor_ = | |
htmlAttribute <| Html.Attributes.style "cursor" (cursorName cursor_) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view model = | |
HolyGrail.view | |
|> HolyGrail.header | |
(HeaderCard.config | |
|> HeaderCard.leftGutter Avatar.small | |
|> HeaderCard.title "Using AI to Detect Emotions in text" | |
) | |
|> HolyGrail.body | |
(ScrollPaneCard.view | |
[ ChatDay.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
if [ "$(elm --version)" != "0.19.1" ]; then | |
echo "Globally installed elm 0.19.1 is required" | |
exit 1 | |
fi | |
export packages=~/.elm/0.19.1/packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:appspector/appspector.dart'; | |
import 'package:flutter/material.dart'; | |
class AppSpectorWidget extends StatefulWidget { | |
final String iosApiKey; | |
final String androidApiKey; | |
final Widget child; | |
AppSpectorWidget( | |
{@required this.iosApiKey, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Cluster": "arn:aws:ecs:us-west-2:&ExampleAWSAccountNo1;:cluster/default", | |
"TaskARN": "arn:aws:ecs:us-west-2:&ExampleAWSAccountNo1;:task/default/febee046097849aba589d4435207c04a", | |
"Family": "query-metadata", | |
"Revision": "7", | |
"DesiredStatus": "RUNNING", | |
"KnownStatus": "RUNNING", | |
"Limits": { | |
"CPU": 0.25, | |
"Memory": 512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"DockerId": "c7a6b9b237934e9999f319ea3ccc9da4query-metadata", | |
"Name": "query-metadata", | |
"DockerName": "query-metadata", | |
"Image": "mreferre/eksutils", | |
"ImageID": "sha256:1b146e73f801617610dcb00441c6423e7c85a7583dd4a65ed1be03cb0e123311", | |
"Labels": { | |
"com.amazonaws.ecs.cluster": "arn:aws:ecs:us-west-2:&ExampleAWSAccountNo1;:cluster/default", | |
"com.amazonaws.ecs.container-name": "query-metadata", | |
"com.amazonaws.ecs.task-arn": "arn:aws:ecs:us-west-2:&ExampleAWSAccountNo1;:task/default/c7a6b9b237934e9999f319ea3ccc9da4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol Notifier { | |
associatedtype Event | |
init() | |
func send(_ : Event) -> Void | |
func map<ChildNotifier, ChildEvent>(_ : (Event) -> (ChildEvent)) -> ChildNotifier where ChildNotifier : Notifier, ChildNotifier.Event == ChildEvent | |
} |
NewerOlder