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 / index.html
Created August 24, 2022 03:49
Multi direction traffic count reader
<!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.0" />
<title>Traffic Count Reader</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script type="module">
import {
@zackad
zackad / youtrack-monospace.user.css
Last active August 17, 2024 06:22
Monospace font for youtrack
/* ==UserStyle==
@name Youtrack Monospace
@version 1.0.0
@namespace https://github.com/zackad
@description Use monospace font on youtrack
@author zackad
@homepageURL https://gist.github.com/zackad/6f75e176493d7b3c9504467511bb905d
@supportURL https://gist.github.com/zackad/6f75e176493d7b3c9504467511bb905d
@updateURL https://gist.github.com/zackad/6f75e176493d7b3c9504467511bb905d/raw/youtrack-monospace.user.css
@license CC-BY-SA-4.0