Skip to content

Instantly share code, notes, and snippets.

View TriathlonCodes's full-sized avatar

Stephanie Hutson TriathlonCodes

View GitHub Profile
@TriathlonCodes
TriathlonCodes / add_charts.js
Created September 25, 2015 23:24
Training Log App Snippets
$(document).ready(function() {
// drawChart('/charts/last_year/run', 'Run', 'Miles')
// drawChart('/charts/last_year/bike', 'Bike','Miles')
// drawChart('/charts/last_year/swim', 'Swim','Meters')
$("#select_charts_form").change(getCharts)
})
var getCharts = function(e) {
// e.preventDefault()
@TriathlonCodes
TriathlonCodes / http-server.md
Last active January 29, 2016 22:02
How to get to use a single line server call when you're running JavaScript files

How to get to use a single line server call when you're running JavaScript files

  1. if not already installed, install node.
  • to check if node is installed type "node" into your command line.
  • if you get the following message, node is not installed:
bash: node: command not found
  1. open your command line for your computer and type: