Skip to content

Instantly share code, notes, and snippets.

View patrickcurl's full-sized avatar

Patrick Curl patrickcurl

View GitHub Profile
anonymous
anonymous / bonfire-diff-two-arrays.js
Created December 9, 2015 08:03
http://www.freecodecamp.com/patrickcurl 's solution for Bonfire: Diff Two Arrays
// Bonfire: Diff Two Arrays
// Author: @patrickcurl
// Challenge: http://www.freecodecamp.com/challenges/bonfire-diff-two-arrays
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function diff(arr1, arr2) {
var newArr = [];
arr1.forEach(function(a){
if(arr2.indexOf(a) == -1){
newArr.push(a);
@parndt
parndt / User.rb
Last active December 11, 2015 05:18 — forked from patrickcurl/User.rb
# == Schema Information
# Schema version: 20130116180743
#
# Table name: users
#
# id :integer not null, primary key
# name :string(255)
# email :string(255)
# created_at :datetime not null
# updated_at :datetime not null