Skip to content

Instantly share code, notes, and snippets.

@borazslo
borazslo / gist:0e31a371b00f764320bc9497008e1913
Created June 22, 2023 17:19
maperitive katolikus térkép
// Maperitive rendering ruleset resembling Google Maps (as of February 2011)
// http://maperitive.net
// Based on
// Puzzle-hoz, ezért más méretben rettenetes minden
// 70*50 cm, 100db, minimum 2950*4150pixel, zoom 8, 1:15 000
//Szeged:
// move-pos x=20.1529 y=46.255 zoom=17
//Budapest
// move-pos x=19.046 y=47.494 zoom=17
<!DOCTYPE html>
<html lang="hu">
<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>Elek László SJ papszentelése</title>
<meta name="Description" content="2018. augusztus 25-én délután háromkor Ternyák Csaba érsek atya pappá szentel Miskolcon." />
<meta name="author" content="Elek László SJ jezsuita szerzetes">
@borazslo
borazslo / gist:34abad30800ba69ce24b
Last active August 29, 2015 14:07
szentiras.hu API PHP példa
<?php
$json = file_get_contents('http://szentiras.hu/api/idezet/1Kor13,10-13');
$array = json_decode($json);
print_r($array);
?>
@borazslo
borazslo / gist:84819edbf4dea7a67e2e
Created September 13, 2014 17:24
How to check if a date is in a given range of day+month?
$date = "20".sprintf('%02d',rand(0,22))."-".sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29));
$start = sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29));
$end = sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29));
echo "Is ".$date." between ".$start." and ".$end."? ";
if("2000".$start < "2000".$end) {
$year = date('Y',strtotime($date));