Skip to content

Instantly share code, notes, and snippets.

@groupdock
groupdock / task.js
Created October 28, 2010 20:21
task.js data source modified for OpenSocial
// ==========================================================================
// Project: Todos.TaskDataSource
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Todos */
sc_require('models/task');
Todos.TASKS_QUERY = SC.Query.local(Todos.Task, {
orderBy: 'isDone,description'
});
@groupdock
groupdock / index.rhtml
Created October 28, 2010 19:13
XML Specification layout for sproutcore applicaiton
<% # SPROUTCORE DEFAULT INDEX TEMPLATE
# This template provide provides a basic wrapper for a SproutCore client.
# Most of the time, it will be sufficient for your own needs. However, if
# you need to create your own template, you can do so by copying this file
# into your client, naming it 'index.rhtml' and then adding the options
# :layout => 'lib/index' to your Buildfile.
#
# See the comments in this file for more information on what you can
# change.
-%>
@groupdock
groupdock / storage-conf.xml
Created October 27, 2010 19:55
Sinandra's Cassandra Storage Conf
<Keyspaces>
<Keyspace Name="sinandra">
<ColumnFamily CompareWith="BytesType" Name="BlogEntries"/>
<ColumnFamily CompareWith="TimeUUIDType" Name="TaggedPosts"/>
<ColumnFamily CompareWith="UTF8Type" Name="Lists"/>
<ColumnFamily CompareWith="TimeUUIDType" Name="Archives"/>
<ColumnFamily CompareWith="TimeUUIDType" Name="Comments"
CompareSubcolumnsWith="BytesType" ColumnType="Super"/>
</Keyspace>
</Keyspaces>
@groupdock
groupdock / index.rhtml
Created October 14, 2010 18:53
Sproutcore index.rhtml layout to turn an app into an OpenSocial app
<% # SPROUTCORE DEFAULT INDEX TEMPLATE
# This template provide provides a basic wrapper for a SproutCore client.
# Most of the time, it will be sufficient for your own needs. However, if
# you need to create your own template, you can do so by copying this file
# into your client, naming it 'index.rhtml' and then adding the options
# :layout => 'lib/index' to your Buildfile.
#
# See the comments in this file for more information on what you can
# change.
-%>
@groupdock
groupdock / Rakefile to deploy a Sproutcore application
Created October 14, 2010 18:32
Rakefile to deploy a Sproutcore application
require 'rake/clean'
# Deploying stuff starts here
require 'net/ssh'
require 'net/scp'
# Change the following constants accordingly
USER = 'yourusername' #TODO: change accordingly
HOSTNAME = 'yourhostname.com' #TODO: change accordingly
APPLICATION = 'hello_sprouts' #TODO: change accordingly
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Groups"
description="Lets a user view the groups he is a member of."
author="Luc Castera (Intellum)"
author_email="[email protected]"
author_location="Atlanta, GA"
author_affiliation="Intellum"
author_link="http://intellum.com"
thumbnail="http://dev.groupdock.com/images/groups-app-thumbnail.png"
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Hello World"
description="Hello World Example for GroupDock"
author="Luc Castera (Intellum)"
author_email="[email protected]"
author_location="Atlanta, GA"
author_affiliation="Intellum"
author_link="http://intellum.com"
thumbnail="http://dev.groupdock.com/images/hello-world-thumbnail.png"
@groupdock
groupdock / ejabberd_
Created June 16, 2010 13:15
ejabberd munin plugin
#!/bin/bash
#
# Updated/Modified by Luc Castera (2010-06-14). Intellum Inc.
# (http://www.intellum.com)
#
# Munin plugin for ejabberd2.
#
# Written by Lasse Karstensen <[email protected]> 2007-05-27.
# Based on ejabberd-plugin by Christian Dröge <[email protected]>
#