Skip to content

Instantly share code, notes, and snippets.

View KevinFalank's full-sized avatar

Kevin Falank KevinFalank

  • Huntersville, NC
View GitHub Profile

Continuous Integration for Fun and Profit

Continu-what?

Definition: the practice of frequently integrating one's new or changed code with the existing code repository -Wikipedia

Merging new code into master often sounds awesome, but we've been learning the value of testing and the importance of a passing test suite.

But, as your projects grow, your test suite should grow as well. We're all lazy and forget to run the entire test suite everytime we create a new commit. For large projects, running the entire test suite can take hours. So we do what all lazy people do, make a computer to the work for us.

@KevinFalank
KevinFalank / carousel.js
Last active August 29, 2015 13:56 — forked from ksolo/carousel.js
Image Carousel
@KevinFalank
KevinFalank / form-validator.js
Last active August 29, 2015 13:56 — forked from ksolo/form-validator.js
Form Validation
// shorthand for $(document).ready();
$(function(){
$('form').submit(function(e){
e.preventDefault();
var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i;
var passwordRegex = /^(?=.*\d)(?=.*[A-Z])\w{8,}$/
var formData = $('form').serializeArray();
var errorFound = false;
$('#errors').empty();
@KevinFalank
KevinFalank / zoo.js
Last active August 29, 2015 13:56 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
function Animal(name, legs) {
this.species = name;
this.legs = legs;
}
@KevinFalank
KevinFalank / index.html
Last active August 29, 2015 13:56 — 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>
class Vehicle
def initialize(args)
@color = args
end
def drive
@status = :driving
end
@KevinFalank
KevinFalank / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 22:59 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end