Skip to content

Instantly share code, notes, and snippets.

View jgilfillan's full-sized avatar

Josh Gilfillan jgilfillan

View GitHub Profile
@jgilfillan
jgilfillan / D3 Curved Grid.js
Created June 1, 2014 22:11
Create a curved grid
var ds = [];
for (var i = 0; i < 40; i++) {
ds.push(i);
}
var w = 800;
var h = 800;
var p = 1;
@jgilfillan
jgilfillan / solution.js
Last active August 29, 2015 14:00
My solution to Project Euler problem 5, using map and reduce.
//QUESTION
//2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
//What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
//SOLUTION
// change to 10 to check against PE example
var end = 20;
//generate sequence
var arrSeq = Array