Skip to content

Instantly share code, notes, and snippets.

@camillebaldock
camillebaldock / codebar.md
Last active August 29, 2015 14:02
Codebar notes

MEDIUM-TERM QUESTIONS

  • Define a high level mission statement
  • what are we focusing on and what we do not plan on teaching?
  • why we are not doing Rails, why you should go back to basics: blog post? disclaimer? (e.g. wordpress/tools/startup-type helpers vs learning how to program from the ground up)
  • Coach inductions
  • Explicit paths/tracks through our training content
  • Development environment surgeries
  • Define roles such as course coordinator/tutorial coordinator/tutorial owner
@camillebaldock
camillebaldock / smartdown_coversheet.rb
Last active August 29, 2015 14:04
Smartdown to Smart-Answer-Friendly models
class SmartdownCoversheet
def initialize(node)
@node = node
end
def title
node.elements.find{|element| element.is_a? Smartdown::Model::Element::MarkdownHeading}
end
#TODO: this will ignore any headings in the body; if I include headings, then "Next node" appears in the text
@camillebaldock
camillebaldock / employee.rb
Last active August 29, 2015 14:05
Jack: Employee Salary Calculator exercise
class Employee
attr_reader :name, :month_salary
def initialize(args)
@name = args[:name]
@month_salary = args[:month_salary]
end
def vat
0.20
end
@camillebaldock
camillebaldock / tech_debt.md
Last active August 29, 2015 14:09
Smartdown Tech Debt

Smartdown/smart-answers tech-debt and potential improvements

Testing and confidence

  • Enforce unique flow name between Smartdown/SA
  • Smartdown lint/validate
    • Check all ref'd nodes exist
    • Check no orphan nodes
    • Run in SA CI
  • Smartdown Scenarios
  • Feature flag to disable artefact lookup
@camillebaldock
camillebaldock / date-notes.md
Last active August 29, 2015 14:13
⌛ It will never be 2014 again 💔 (or 2013 for that matter)

##Workplace pension calculator

def threshold_annual_rate
  if Date.today < Date.civil(2013, 4, 8)
    8105.0
  elsif Date.today >= Date.civil(2013, 4, 8)
    9440.0
  end
end
@camillebaldock
camillebaldock / adoption_recommendations.md
Last active August 29, 2015 14:13
Adoption flow recommendations

Adoption flow recommendations

Which eligibilities matter?

For all adoption cases, it is necessary to keep track during the calculation of the outcome whether each partner is eligible or not for:

  • adoption leave
  • adoption pay
  • paternity leave
  • shared parental leave
@camillebaldock
camillebaldock / spl_documentation.md
Created January 12, 2015 17:11
SPL documentation, including adoption

##Usage

The pay and leave for parents determines whether a single parent or two parents are eligible for any the following

  • maternity leave
  • maternity pay
  • maternity allowance
  • adoption leave
  • adoption pay
  • paternity leave

Keybase proof

I hereby claim:

  • I am camilleldn on github.
  • I am camille (https://keybase.io/camille) on keybase.
  • I have a public key whose fingerprint is FCAE 3E58 388E BA6C 0694 466A D381 D88B 580C 6398

To claim this, I am signing this object:

@camillebaldock
camillebaldock / GoogleMapsCoordinates.gif
Last active August 29, 2015 14:15
Exposing GPS coordinates in Google maps
GoogleMapsCoordinates.gif
@camillebaldock
camillebaldock / README.md
Last active August 29, 2015 14:17
Dashing Gmail widget

Description

A Dashing widget for displaying the number of emails in a Gmail inbox.

See a live demo here.

Usage

Setup the following environment variables: