Skip to content

Instantly share code, notes, and snippets.

View ejallday's full-sized avatar

Eric Allen ejallday

  • Forj.ai
  • Minneapolis, MN
View GitHub Profile
@ejallday
ejallday / node-schedule-bug-workaround.js
Last active December 6, 2016 17:43
node-schedule-bug-workaround
// email-blast-cron.spec.js
'use strict';
const emailBlastCron = require('../lib/email-blast-cron');
const chai = require('chai');
const expect = chai.expect;
const request = require('request-promise');
const sinon = require('sinon');
@ejallday
ejallday / node-schedule-bug.js
Last active December 6, 2016 17:46
node-schedule-bug
/// Broken Scenario Tests
// email-blast-cron.spec.js
'use strict';
const emailBlastCron = require("../lib/email-blast-cron");
const chai = require('chai');
const expect = chai.expect;
const request = require('request-promise');
@ejallday
ejallday / code_resources.md
Created June 12, 2014 20:45
Coding resources for beginners

These are the resources that have helped me along the way (in order of importance):

  • Mentors / Friends / Co-Workers - There is no tutorial, book, school or website that can help you faster than a good friend or mentor.
  • Michael Hartl tutorial - Do it multiple times until you understand it. Incorporates git, testing, ruby, rails.
  • A 'breakable toy' - something you're passionate about, and that you are building for yourself
  • Chris Pine's learn to program
  • Sandi Metz - Practical Object Oriented Design in Ruby
  • The Well grounded Rubyist
  • Pragmatic Programmers Rails tutorial
@ejallday
ejallday / add_an_assignment_spec.rb
Created May 9, 2014 20:14
Refactoring with an apprentice
# spec/features/teacher/add_an_assignment_spec.rb
require 'spec_helper'
feature 'teacher adding an assignment' do
scenario 'can create an assignment with valid attributes' do
teacher = create(:teacher)
course1 = create(:course, name: 'Math', teacher: teacher)
course2 = create(:course, name: 'Science', teacher: teacher)
course3 = create(:course, name: 'History', teacher: teacher)
@ejallday
ejallday / index.html
Created July 25, 2013 13:13 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
@ejallday
ejallday / index.html
Created July 16, 2013 00:47 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@ejallday
ejallday / index.html
Last active December 19, 2015 07:19 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
var header = $('.span4 h1:first-child')
var headerText = header.html();
$('.btn-group').hover(function() {
event.preventDefault;
header.html("Unicorn")
},
function() {
header.html(headerText)