This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is now located at: https://github.com/budparr/jekyll-calendar | |
// REQUIRES MOMENT.JS AND UNDERSCORE.JS | |
// This still needs to be templated and cleaned up and commented. | |
// original idea came from (I think) seattlehacks.com | |
// you will need to add events via a JSON file | |
// OR use this YAML to have content people create lists of events https://gist.github.com/budparr/5b21dccf318e723834e9 | |
// use this JSON generator to create JSON for list below https://gist.github.com/budparr/ee901ba06f29cf1db637 | |
var timing = function(start, end) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name example.com; | |
root /var/www/example.com/public; | |
index index.php; | |
access_log /var/www/example.com/logs/access.log; | |
error_log /var/www/example.com/logs/error.log; | |
add_header "X-Built-With" "Statamic"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- | |
Description: | |
This is a date formatting utility. The named template "format-date" takes 2 parameters: | |
1. date - [required] takes an ISO date (2005-12-01) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf .htaccess install-log.txt manifest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<data> | |
<params> | |
<today>2011-10-27</today> | |
<current-time>16:00</current-time> | |
<this-year>2011</this-year> | |
<this-month>10</this-month> | |
<this-day>27</this-day> | |
<timezone>-07:00</timezone> | |
<website-name>Symphony CMS</website-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<html> | |
<head> | |
<link rel="stylesheet" href="workspace/assets/style.css"/> | |
</head> | |
<body> | |
<div id="head"> | |
<h1>Title</h1> | |
</div> | |
<div id="package"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rewrite from example.com to www.example.com | |
server { | |
listen 80; | |
server_name example.com; | |
rewrite ^(.+?)/?$ http://www.example.com$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name www.example.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
index index.php; | |
# serve static files directly | |
if (-f $request_filename) { | |
access_log off; | |
expires 30d; | |
break; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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'; | |
const GOOGLE_ENDPOINT = 'https://www.googleapis.com/calendar/v3/calendars/%s/events?fields=%s&key=%s'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<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="http://example.com/symphony/assets/css/symphony.css"> | |
<link rel="stylesheet" type="text/css" media="screen" href="http://example.com/symphony/assets/css/symphony.legacy.css"> | |
<link rel="stylesheet" type="text/css" media="screen" href="http://example.com/symphony/assets/css/symphony.grids.css"> |
OlderNewer