Skip to content

Instantly share code, notes, and snippets.

@wrey75
wrey75 / primes.c
Created December 8, 2023 14:44
A prime calculator to test the speed of a server
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
/**
* Defined as a default. You can pass any value as first parameter.
*/
#define LIMIT (200000)
@wrey75
wrey75 / JSONUtil.php
Created December 3, 2014 22:06
A JSON Diff object
<?php
/**
* This class works on arrays, not on JSON strings
* directly. You have to use json_encode/json_decode
* for doing this.
*
* @author [email protected]
*
*/