Skip to content

Instantly share code, notes, and snippets.

budparr / calendar-for-static-sites.js
Last active August 29, 2015 14:01
A calendar solution for static sites
this is now located at:
// This still needs to be templated and cleaned up and commented.
// original idea came from (I think)
// you will need to add events via a JSON file
// OR use this YAML to have content people create lists of events
// use this JSON generator to create JSON for list below
var timing = function(start, end) {
nobodyiscertain / example.conf
Last active August 29, 2015 14:05
nginx Config for Statamic 1.8.2
server {
root /var/www/;
index index.php;
access_log /var/www/;
error_log /var/www/;
add_header "X-Built-With" "Statamic";
bauhouse / date-time.xsl
Created October 16, 2011 15:37
Project Template
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
This is a date formatting utility. The named template "format-date" takes 2 parameters:
1. date - [required] takes an ISO date (2005-12-01)
bauhouse /
Created October 16, 2011 16:16
Delete Files to Reinstall Symphony CMS
sudo rm -rf .htaccess install-log.txt manifest
bauhouse / home.xml
Created October 27, 2011 22:23
Master XSL Template with overrides
<?xml version="1.0" encoding="utf-8" ?>
<website-name>Symphony CMS</website-name>
<?xml version="1.0" encoding="UTF-8"?>
<link rel="stylesheet" href="workspace/assets/style.css"/>
<div id="head">
<div id="package">
# rewrite from to
server {
listen 80;
rewrite ^(.+?)/?$$1 permanent;
server {
listen 80;
location / {
index index.php;
# serve static files directly
if (-f $request_filename) {
access_log off;
expires 30d;
brendo / event.google_calendar_import.php
Created March 29, 2012 14:05
Google Calendar Event
require_once EXTENSIONS . '/xmlimporter/extension.driver.php';
require_once EXTENSIONS . '/google_calendar_api/lib/class.json_to_xml.php';
require_once TOOLKIT . '/class.gateway.php';
Class eventgoogle_calendar_import extends Event {
const ROOTELEMENT = 'google-calendar-import';
brendo / backend.html
Created April 13, 2012 15:14
Symphony Backend markup
<!DOCTYPE html>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- Core styles -->
<link rel="stylesheet" type="text/css" media="screen" href="">
<link rel="stylesheet" type="text/css" media="screen" href="">
<link rel="stylesheet" type="text/css" media="screen" href="">