Logos vectoriels pour:
- APR
- LIP6
- UPMC
- CNRS
external openssl_sha1 : string -> string = "camlopenssl_sha1" | |
external openssl_blake2b : string -> string = "camlopenssl_blake2b" | |
let bench_sha1 () = | |
let input_len = 100_000 in | |
let input = String.make input_len ' ' in | |
let run_digestif () = Digestif.SHA1.digest_string input in | |
let run_openssl () = openssl_sha1 input |> Digestif.SHA1.of_raw_string in | |
Benchmark.throughputN 1 |
open Parsetree; | |
open Codemod.Helpers; | |
let replaceErrors = (ctx, expr) => | |
expr | |
->mapExpr((mapper, expr) => { | |
switch (expr.pexp_desc) { | |
| Pexp_construct({txt: Longident.Lident("Student")} as lid, Some({pexp_desc: Pexp_tuple([name, age])})) => | |
let loc = Location.none |
(* Step 1: 'a list -> bool everywhere. *) | |
(* Step 2: Wrap in a newtype: Finder of 'a list -> bool *) | |
(* Step 3: abstract in a module with this signature *) | |
module type LIST_FINDER = sig | |
type 'a t | |
val this_element : 'a -> 'a t |
#!/bin/sh | |
url=bitoduc.fr/traductions.json | |
jq='[.["vrais mots"] + .["faux mots"] | .[] | {(.anglais): .francais}]|add|.[$mot]' | |
curl -s "$url" | jq "$jq" -r --arg mot "$1" |
Binary files ocaml-3.12.0/.DS_Store and ocaml-diff/.DS_Store differ | |
diff -urN ocaml-3.12.0/.depend ocaml-diff/.depend | |
--- ocaml-3.12.0/.depend 2010-07-23 17:30:37.000000000 +0200 | |
+++ ocaml-diff/.depend 2012-03-14 14:42:30.000000000 +0100 | |
@@ -291,12 +291,17 @@ | |
bytecomp/bytepackager.cmi: typing/ident.cmi | |
bytecomp/bytesections.cmi: | |
bytecomp/cmo_format.cmi: bytecomp/lambda.cmi typing/ident.cmi | |
+bytecomp/covevent.cmi: typing/types.cmi parsing/location.cmi | |
+bytecomp/covutils.cmi: typing/typedtree.cmi typing/primitive.cmi \ |
Logos vectoriels pour:
#!/usr/bin/env python | |
import random | |
import sys | |
import urllib2 | |
from bs4 import BeautifulSoup | |
def video_open(vid): | |
url = 'http://www.youtube.com' + vid | |
return urllib2.urlopen(url) |
// ==UserScript== | |
// @match http://*.wikipedia.org/wiki/* | |
// This was written by Etienne Millon <etienne.millon@gmail.com> | |
// | |
// Replace Jimmy Wales' "donate now" pics by kittens. | |
// ==/UserScript== | |
function replaceJimmy() { | |
var img = $("img[alt='Jimmy Wales']")[0]; | |
var url = 'http://placekitten.com/'+img.width+'/'+img.height; |