MonkeySpace: Generating Google Calendar CSV

by Adam Patridge

HTML

<script src="https://rawgithub.com/bestiejs/lodash/v1.3.1/dist/lodash.min.js"></script>
<script src="https://rawgithub.com/timrwood/moment/2.1.0/min/moment.min.js"></script>
<textarea id="results">
Subject,Start Date,Start Time,End Date,End Time,All Day Event,Description,Location,Private
</textarea>

CSS

#results {
    width: 100%;
    height: 150px;
}

JavaScript

// Copied from https://raw.github.com/conceptdev/MonkeySpace/master/Core/Data/sessions.json
var sessions = [
{
"id": 0,
"title": "Registration",
"abstract": "Please arrive early to register, once registered you can mingle and get ready for the keynote.",
"speakers": [],
"begins": "2013-07-22T08:00:00.0000000-04:00",
"ends": "2013-07-22T09:00:00.0000000-04:00",
"location": "",
"vimeoId": ""
},
{
"id": 1,
"title": "Keynote",
"abstract": "",
"speakers": [
{
"id": 0,
"name": "Erik Meijer",
"twitterHandle": "headinthebox",
"bio": "http://en.wikipedia.org/wiki/Erik_Meijer_(computer_scientist)",
"headshotUrl": "/images/speakers/erik.jpg"
}
],
"begins": "2013-07-22T09:00:00.0000000-04:00",
"ends": "2013-07-22T10:00:00.0000000-04:00",
"location": "",
"vimeoId": ""
},
{
"id": 2,
"title": "Authentication Middleware for OWIN",
"abstract": "Katana 1.1 has shipped with support for self-hosting and authentication middleware that will run on any server. Let's take a look at how that works to have the same cookie authentication and third-party sign-in code work across multiple web frameworks.",
"speakers": [
{
"id": 1,
"name": "Louis DeJardin",
"twitterHandle": "loudej",
"bio": "Louis DeJardin works at Microsoft on the web team and is an active member of the OWIN specification working group. Prior to that he worked at Dow Jones creating real-time web-based systems and is the author of the Spark view engine.",
"headshotUrl": "/images/speakers/louis.jpg"
}
],
"begins": "2013-07-22T10:15:00.0000000-04:00",
"ends": "2013-07-22T11:15:00.0000000-04:00",
"location": "",
"vimeoId": ""
},
{
"id": 3,
"title": "Building Windows 8 and Cross-Platform Games using C#, XNA, and MonoGame",
"abstract": "MonoGame is an open source cross platform implementation of the XNA namespace and class model leveraging the Xamarin framework. The goal of MonoGame is to provide developers with a C#/XNA framework in order build applications that will run Windows 8/Windows RT, Windows Phone 8, and Windows while...