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
diff --git a/src/commands.c b/src/commands.c | |
index 63cb3606..61abb0c3 100644 | |
--- a/src/commands.c | |
+++ b/src/commands.c | |
@@ -1113,10 +1113,12 @@ static bool cmd_open(EditorState *e, const CommandArgs *a) | |
paths = globbuf.gl_pathv; | |
} | |
+ bool replace_view = has_flag(a, 'R'); | |
+ |
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 Day06 exposing (partOne, partTwo) | |
import Set exposing (Set) | |
type alias Signal = | |
String | |
findStartOfPacketMarker : Int -> Signal -> 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
module Day05 exposing (partOne, partTwo) | |
import Dict exposing (Dict) | |
import List.Extra as List | |
type alias Crate = | |
Char | |
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 Day04 exposing (partOne, partTwo) | |
import Parser exposing ((|.), (|=), Parser, Step(..), int, loop, map, oneOf, run, spaces, succeed, symbol) | |
type alias Range = | |
( Int, Int ) | |
type alias RangePair = |
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 Day03 exposing (partOne, partTwo) | |
import Set exposing (Set) | |
type alias ItemType = | |
Char | |
itemTypePriority : ItemType -> 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
module Day02 exposing (partOne, partTwo) | |
type alias Score = | |
Int | |
type Outcome | |
= Win Score | |
| Draw Score | |
| Loss Score |
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 Day01 exposing (partOne, partTwo) | |
decreasingOrder : comparable -> comparable -> Order | |
decreasingOrder a b = | |
case compare a b of | |
LT -> | |
GT | |
EQ -> | |
EQ |
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
function EditText<T extends React.ElementType = "h1">({ | |
as: Component = "h1", | |
children | |
}: EditTextProps<T>) { | |
Component | |
return <Component>{children}</Component>; | |
} |
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
function EditText<T extends React.ElementType = "h1">({ | |
as, | |
children | |
}: EditTextProps<T>) { | |
const Component = as || "h1"; | |
return <Component>{children}</Component>; | |
} |
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 Kata exposing (fromNb2Str) | |
fromNb2Str n modsys = | |
let | |
gcd : Int -> Int -> Int | |
gcd a b = | |
if b == 0 then | |
a |