Skip to content

Instantly share code, notes, and snippets.

View AntoineLemaire's full-sized avatar
👨‍💻

Antoine Lemaire AntoineLemaire

👨‍💻
View GitHub Profile
@aknosis
aknosis / calendar.twig
Created October 22, 2012 15:52
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:
@rawdatalab
rawdatalab / stillalive.rc
Created April 11, 2019 17:42
STILL ALIVE as a Bash script with beep (didn't create, just sharing)
# Let 'em know that we're Still Alive
# http://pastebin.com/f72f8f72d (no longer valid)
#!/bin/bash
echo -n "This "
beep -f 784 -l 200
echo -n "was "
beep -f 740 -l 200
echo -n "a "
beep -f 659 -l 200