Skip to content

Instantly share code, notes, and snippets.

View rklancer's full-sized avatar

Richard Klancer rklancer

View GitHub Profile
#/bin/bash
# get the commit #
export COMMIT_HASH=`git log -1 --format=%H`
# set up RVM and use our gemset
if [[ -s /home/maven/.rvm/scripts/rvm ]] ; then source /home/maven/.rvm/scripts/rvm ; fi
rvm 1.9.1@raphael_views
# setup raphael-git. Include the --recursive in case we end up adding submodules that have their own submodules
(function(){
var DEBUG = false;
var doPost = false;
try {
doPost = !!window.top.postMessage;
} catch(e){}
module("Smartgraphs.questionSequenceController question-sequence navigation", {
setup: function () {
Smartgraphs.Question.FIXTURES = [
SC.mixin(SC.copy(qhash), {guid: 'q1', sequence: 'test-sequence-1'}),
SC.mixin(SC.copy(qhash), {guid: 'q2', sequence: 'test-sequence-2'})
];
Smartgraphs.QuestionSequence.FIXTURES = [
{ guid: 'test-sequence-1', questions: ['q1'] },
{ guid: 'test-sequence-2', questions: ['q2'] }
/*globals $ Raphael */
// make these accessible at the Firebug/Web Inspector console
var r, group;
$(function () {
var notHighlighted = {
stroke: "#aaaaaa",
fill: "#aaaaaa"
/*globals $ Raphael */
// make these accessible at the Firebug/Web Inspector console
var r, group;
$(function () {
var notHighlighted = {
stroke: "#aaaaaa",
fill: "#aaaaaa"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Raphael graphs</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="javascripts/raphael/raphael.js"></script>
<link rel="stylesheet" href="stylesheets/apidocs.css">
...
introView: SC.StackedView.design({
layout: { top: 20, bottom: 20 },
childViews: [
SC.LabelView.design(SC.StaticLayout, {
useStaticLayout: YES,
classNames: ['append-to-me'],
escapeHTML: NO,
displayValue: "So, I'm a big ol' string of text. <br><br>And I'm another string of text."
})]