Skip to content

Instantly share code, notes, and snippets.

View zwilias's full-sized avatar

Ilias Van Peer zwilias

View GitHub Profile
'use strict';
require('./index.html');
var Elm = require('./Main.elm');
console.log(Elm);
@zwilias
zwilias / Exif.elm
Last active July 22, 2019 06:35
Bytes decoder to extract orientation info from EXIF metadata in JPEG images
module Exif exposing (Orientation, orientation)
import Bytes
import Bytes.Decode as Decode exposing (Decoder)
type Orientation
= Normal
| MirrorHorizontal
| Rotate180
module Main where
type Extensible a =
{ count :: Int | a }
data State
= A (Extensible ( text :: String ))
| B (Extensible ( whatever :: String ))
updatePosition :: (forall a. Extensible a -> Extensible a) -> State -> State
companySalaries =
List.foldl
(\datum ->
Dict.update
datum.company
(Maybe.withDefault []
>> (::) datum.monthSalary
>> Just
)
)
@zwilias
zwilias / Dockerfile
Created July 26, 2024 12:54
Backstage Dockerfile for yarn 3
# This dockerfile builds an image for the backend package.
# It should be executed with the root of the repo as docker context.
#
# Before building this image, be sure to have run the following commands in the repo root:
#
# yarn install
# yarn tsc
# yarn build:backend
#
# Once the commands have been run, you can build the image using `yarn build-image`