Skip to content

Instantly share code, notes, and snippets.

View pusle's full-sized avatar

Tommy Eliassen pusle

View GitHub Profile
<?php
/**
* Class PersonalNumber
*
* @TODO calculate age?
*/
class PersonalNumber
{

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@pusle
pusle / calendar.twig
Created June 2, 2016 09:39 — forked from aknosis/calendar.twig
Table based calendar only using Twig
{#
time can be any string acceptable by http://www.php.net/strtotime, the
template will output that time's month.
If you don't want to pass in a date you can set time like this:
{% set time = "now"|date("U") %}
{% set time = "December 2012"|date("U") %}
How ever you want to output items onto the calendar is a different issue,
but I'd assume pushing everything into an array numerically indexed by that day: