Skip to content

Instantly share code, notes, and snippets.

View pveber's full-sized avatar
💭
🐫

pveber pveber

💭
🐫
View GitHub Profile
@pveber
pveber / gist:c6e9437f4964ec9f00e7f1ec6cccce52
Created June 26, 2019 18:10
Guix failing log using inferior
Mise à jour du canal « guix » depuis le dépôt Git « https://git.savannah.gnu.org/git/guix.git »...
substitute: /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
substitute: /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Computing Guix derivation for 'x86_64-linux'... \substitute: /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
substitute: /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
|
Les dérivations suivantes seront compilées :
/gnu/store/4hn1rdm43qv8r0h8apa5cls8k7fnl7w3-guix-65956ad35.drv
/gnu/store/vlgh0nap4psmsldsp7hi9jsyphmim1yb-profile.drv
/gnu/store/zwj45h5qbvj4wa3b3mcnlb92915br6af-inferior-script.scm.drv
B _build/default
FLG -ppx '/home/pveber/tmp/delme/_build/default/.ppx/ppx_sexp_conv/ppx.exe --as-ppx --cookie '\''library-name="delme"'\'''
FLG -w -40
PKG base
PKG base.caml
PKG base.shadow_stdlib
PKG bigarray
PKG sexplib
PKG sexplib.0
PKG unix
@pveber
pveber / lines_async.ml
Created August 1, 2014 18:45
Count lines with async (ocaml)
open Async.Std
let t fn () =
Reader.open_file fn
>>| Reader.lines
>>= Pipe.fold ~init:0 ~f:(fun n _ -> return (n + 1))
>>= fun n -> return (Print.printf "%d\n" n)
let app = Command.(async Spec.(step (fun t fn -> t fn) +> (anon ("fn" %: string)))) ~summary:"bench" t
@pveber
pveber / lines_std.ml
Created August 1, 2014 18:43
Count lines with ocaml standard library
let () =
let n = ref 0 in
let ic = open_in Sys.argv.(1) in
(try
while true; do
ignore (input_line ic);
incr n
done;
assert false
with End_of_file -> ()
@pveber
pveber / input_is_too_large.eliom
Created November 25, 2013 07:36
site raising Input_is_too_large exception
{shared{
open Printf
open Eliom_content
open Eliom_content.Html5.F
open Eliom_parameter
}}
(*
(* uncomment this to fix the issue *)
@pveber
pveber / repro.eliom
Created October 8, 2013 06:34
site raising Input_is_too_large
{shared{
open Printf
open Eliom_content
open Eliom_content.Html5.F
open Eliom_parameter
}}
{client{
let file_of_input_element elt =
@pveber
pveber / bug_entity.eliom
Created September 18, 2013 10:12
A web site illustrating a bug on entity for client-side/
{shared{
open Eliom_lib
open Eliom_content
}}
module Bug_entity_app =
Eliom_registration.App (
struct
let application_name = "bug_entity"
end)