Skip to content

Instantly share code, notes, and snippets.

View zackad's full-sized avatar

zackad

View GitHub Profile
@zackad
zackad / calendar.html.twig
Last active April 6, 2022 11:37 — forked from dsiebel/calendar.html.twig
A Twig template rendering a calendar/datepicker.
{#
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:
@zackad
zackad / Dockerfile
Created February 4, 2017 14:29 — forked from herloct/Dockerfile
Dockerfile for OL-Fetish
FROM alpine:3.5
ENV OPENLAYERS_VERSION=3.20.1
RUN apk update --no-cache \
&& apk add --no-cache \
nodejs \
openjdk8 \
&& mkdir -p /openlayers \