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
#[test] | |
fn test_raw() { | |
assert_eq!( | |
raw("Hi stranger, how are you?"), | |
Ok( | |
( | |
"", | |
Format::Raw( | |
vec![ | |
Atom::Word("Hi"), |
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
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Main where | |
import Control.Concurrent (forkIO, threadDelay) | |
import Control.Exception (catch) | |
import Control.Monad (forever, void, when) | |
import Control.Monad.State.Strict (StateT, get, runStateT) |
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
inductive seq (α: Type) : Type | |
| cons : α -> seq -> seq | |
| nil {} : seq | |
open seq | |
def apply {α β} (f: α -> β) : seq α -> seq β | |
| nil := nil | |
| (cons x rst) := cons (f x) (apply rst) |
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
(defvar x 3) | |
(defvar test (list 'x)) | |
(eval `(setf ,(nth 0 test) 5)) | |
(print x) |
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
run: | |
@sbcl --eval "(ql:quickload :lysk)" \ | |
--eval "(lysk:run)" | |
bundle: | |
@echo -en "[ ] Remove old build" | |
@rm -rf build/ | |
@echo -e "\r[*] Remove old build" | |
@echo "[ ] Building" | |
@sbcl --eval "(ql:quickload :lysk/bundle)" --eval "(lysk.bundle:deliver)" --quit |
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
(cl:in-package :lysk) | |
(gamekit:defgame example () ()) | |
(defmethod gamekit:post-initialize ((app example)) | |
(gamekit:bind-button :mouse-left :released | |
(lambda () (gamekit:stop)))) | |
(defun run () | |
(gamekit:start 'example)) |
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
\usepackage[light]{noto} | |
\usepackage[light]{merriweather} | |
\makeatletter | |
\let\scshape\relax % to avoid a warning | |
\DeclareRobustCommand\scshape{% | |
\not@math@alphabet\scshape\relax | |
\ifnum\pdf@strcmp{\f@family}{\familydefault}=\z@ | |
\fontfamily{NotoSerif-TLF}% | |
\fi |
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
Require Import Coq.Arith.Mult. | |
Inductive tree | |
(a: Type) | |
: Type := | |
| Leaf (x: a) | |
: tree a | |
| Node (x: a) | |
(l: tree a) | |
(r: tree a) |
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
Require Import Coq.Program.Program. | |
Require Import Coq.Arith.PeanoNat. | |
Require Import Recdef. | |
Require Import Omega. | |
Function sup | |
(n: nat) | |
{measure id} | |
: nat := | |
match n with |
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
│23:39:42 lthms | et je vais m’arrêter là pour ce soir | |
│23:39:49 | parce que dodo | |
│00:33:35 | je me suis relevé parce que j’arrivais pas à dormir à cause de ce truc |