Skip to content

Instantly share code, notes, and snippets.

View bencoveney's full-sized avatar
🐿️
Slingin semicolons

Ben Coveney bencoveney

🐿️
Slingin semicolons
View GitHub Profile
@bencoveney
bencoveney / RegexFractals.html
Created September 24, 2014 19:01
Generates fractals from regular expressions
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Regular Expression Fractals</title>
<meta name="description" content="Regular Expression Fractals">
<meta name="author" content="Ben Coveney">
@bencoveney
bencoveney / Problem 54.cs
Created August 4, 2014 13:57
Poker hands
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
namespace EulerProject
{
@bencoveney
bencoveney / Problem 22.cs
Created August 4, 2014 08:53
Names scores
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
namespace EulerProject
{
@bencoveney
bencoveney / ConsoleSnake.cs
Created August 1, 2014 11:12
Play Snake in the console
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Threading.Tasks;
namespace ConsoleSnake
{
class Position
@bencoveney
bencoveney / Problem 15.cs
Created July 18, 2014 12:39
Lattice Paths
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
namespace EulerProject
{
@bencoveney
bencoveney / Problem 14.cs
Created July 17, 2014 12:23
Longest Collatz sequence
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
namespace EulerProject
{
@bencoveney
bencoveney / Problem 13.cs
Last active August 29, 2015 14:04
Large Sum
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
namespace EulerProject
{
@bencoveney
bencoveney / Problem 12.cs
Last active August 29, 2015 14:04
Highly divisible triangular number
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EulerProject
{
class Program
{
@bencoveney
bencoveney / Problem 11.js
Last active August 29, 2015 14:03
Largest Product in a Grid (unfinished)
// Functions ----------------------------------------------------------
var findHighestProduct = function() {
console.log("Finding");
var highestProduct = 0;
for(var x = 0; x < rows.length; x++)
{
@bencoveney
bencoveney / Problem 10.js
Created June 15, 2014 17:52
Summation of primes
var isPrime = function(number, primes) {
// Is the number evenly divisible by any of the current primes?
for(var i = 0; i < primes.length; i++)
{
if(number % primes[i] === 0)
{
// if we manage an even division the number isnt prime
return false;
}
}