Skip to content

Instantly share code, notes, and snippets.

Brandon Valentine bval

Block or report user

Report or block bval

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bval
bval / _visit.html.erb
Created Sep 12, 2012 — forked from wnstn/_visit.html.erb
data being passed in
View _visit.html.erb
<div class="outcome-section graph-container">
<h3 class="boxed-header">Overall Progress <%= records.last.integer_value %></h3>
<h3 class="boxed-header">Goal <%= ogoal.goal %></h3>
<div style="height:300px;" class="graph" data-scale="<%= ogoal.scale.min %>-<%= ogoal.scale.max %>" data-goal="<%= ogoal.goal %>" data-coordata="<%= records.to_a.map { |r| "#{r.progress_report.due_date.to_time.to_i*1000}|#{(r.integer_value)}" }.join(",") %>">
</div>
</div>
View gist:1761786
[ ["-71", "-49"], ["-47", "-37"], ["-73"] ] =returns=> [ ["-71", "-47", "-73"] ["-71", "-37", "-73"] ["-49", "-47", "-73"] ["-49", "-37", "-73"] ]
or
[
["-71", "-49"],
["-47", "-37"],
["-73"]
]
returns
[
View gist:788241
<?php
/**
* Department form.
*
* @package skeleton
* @subpackage form
* @author Your name here
* @version SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
View gist:768472
sfGuardUser:
sgu_admin:
username: admin
password: Client2009
is_super_admin: true
cwage:
username: cwage
password: changeme
first_name: Chris
last_name: Wage
You can’t perform that action at this time.