Skip to content

Instantly share code, notes, and snippets.

View cicnavi's full-sized avatar

Marko Ivancic cicnavi

View GitHub Profile
@cicnavi
cicnavi / phpspeed.php
Created July 20, 2018 12:08
PHP script used for simple speed testing of different PHP versions. It generates (large) random numbers and checks if they are prime or not.
<?php
// Save the time when the script started running.
$startTime = time();
// Number of times we will generate a random number and check if it is a prime.
$numberOfRandomNumbers = 1E5; // Scientific notation for number 100000
// Iterate the desired number of times and check if random number is prime.
for ($i = 0; $i < $numberOfRandomNumbers; $i++) {
@cicnavi
cicnavi / basic-html5-template-including-bootstrap-3.html
Created May 31, 2017 12:05
Basic HTML5 Template Including Bootstrap 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Basic HTML5 Template</title>
@cicnavi
cicnavi / basic-html5-template.html
Created May 31, 2017 10:24
Basic HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Basic HTML5 Template</title>
</head>