Skip to content

Instantly share code, notes, and snippets.

View mxmaxime's full-sized avatar
🎯
Focusing

Maxime moreau mxmaxime

🎯
Focusing
  • France
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@mxmaxime
mxmaxime / silly-struct.c
Last active August 17, 2017 14:10
Silly struct
#include <stdio.h>
#include <stdlib.h>
typedef struct Resultat {
char prenom[30];
float note;
} Resultat;
typedef struct Ie {
char libelle[50];
@mxmaxime
mxmaxime / index.html
Last active September 28, 2017 13:08
array includes #jsbench #jsperf (https://jsbench.github.io/#5e6a08d00264773bfaf0681c06b6c864) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>array includes #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<?php
/**
* Not Modified field based
* Warning: if you change the file and the field
* `updatedAt` don't change, your users won't see the change
* (except those who don't have a cache)
*/
$result = [
<?php
function assets($path)
{
$file = realpath($path);
if (!file_exists($file)) throw new Exception("Le fichier {$file} n'existe pas");
$mtime = filemtime($file);
$path_info = pathinfo($path);
@mxmaxime
mxmaxime / gist:91d83e60dd101ed1b27972fd91e0673a
Created March 24, 2022 12:58 — forked from afair/gist:2402068
Perl References for Kittens

Perl References

Simple Perl variables are called scalars. Examples of scalar values are

   $number      = 123;
   $string      = "String";
   $file_handle = open "<filename";
   $null_value  = undef;
 $instance = MyClass-&gt;new;