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
expect! : Either e a -> {Exception e} a | |
expect! = cases | |
Left e -> raise e | |
Right a -> a | |
identity : Decode Value | |
identity = | |
Decode (v -> Right v) | |
(~>) : Value -> Text -> {Exception Text} Value |
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
namespace RFC where | |
parseDigit = oneOfChars [?0, ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9] | |
parseHex = Unipar.satisfy isHexDigit "wasn't a hex digit" | |
parseCRLF = (ch ?\r Unipar.>> ch ?\n) | |
type RawHeaders | |
= RawHeaders (Map Text Text) | |
type Request | |
= Request HostName Text RawHeaders |
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 java.io.File | |
import java.util.stream.Stream | |
import kotlin.streams.toList | |
import kotlin.system.measureNanoTime | |
import kotlin.system.measureTimeMillis | |
sealed class IntCode { | |
abstract val steps: Int | |
object Halt : IntCode() { |
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
// ==UserScript== | |
// @name Hide Blackhole | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://profile.intra.42.fr/users/* | |
// @match https://profile.intra.42.fr/ | |
// @grant none | |
// ==/UserScript== |
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
let mapleader="," | |
set nocompatible | |
filetype off | |
"let base16colorspace=256 | |
set termguicolors | |
let g:loaded_matchit = 1 | |
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
/* ************************************************************************** */ | |
/* */ | |
/* :::::::: */ | |
/* gfx_keys.h :+: :+: */ | |
/* +:+ */ | |
/* By: nmartins <[email protected]> +#+ */ | |
/* +#+ */ | |
/* Created: 2019/04/30 00:56:56 by nmartins #+# #+# */ | |
/* Updated: 2019/05/02 20:28:49 by nmartins ######## odam.nl */ | |
/* */ |
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
#include <stdio.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include "get_next_line.h" | |
#include "libft.h" | |
int main(int argc, char **argv) | |
{ |
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
" show line numbers | |
set number | |
" enable mouse support | |
set mouse=a | |
" enable ruler | |
set ruler | |
" set tabs to 4 spaces | |
set ts=4 | |
set softtabstop=0 noexpandtab | |
set shiftwidth=4 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include "libft.h" | |
size_t digit_mul(long long n) | |
{ | |
size_t i; | |
i = n % 10; | |
n /= 10; |
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
/* ************************************************************************** */ | |
/* */ | |
/* :::::::: */ | |
/* libft.h :+: :+: */ | |
/* +:+ */ | |
/* By: nmartins <[email protected]> +#+ */ | |
/* +#+ */ | |
/* Created: 2019/02/26 15:29:41 by nmartins #+# #+# */ | |
/* Updated: 2019/03/20 19:26:46 by nmartins ######## odam.nl */ | |
/* */ |
NewerOlder