Skip to content

Instantly share code, notes, and snippets.

Avatar

borazslo

View GitHub Profile
View szenteles.eleklaszlo.hu
<!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 Aug 29, 2015
szentiras.hu API PHP példa
View gist:34abad30800ba69ce24b
<?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 Sep 13, 2014
How to check if a date is in a given range of day+month?
View gist:84819edbf4dea7a67e2e
$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));
You can’t perform that action at this time.