Skip to content

Instantly share code, notes, and snippets.

Jeff Foster fffej

Block or report user

Report or block fffej

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Ugly Thing.cs
[TestFixture]
public class UglyThingTest
{
[Test]
public void CreateUglyThing()
{
UglyThing ugly = new UglyThing();
}
}
@fffej
fffej / Kata2.cs
Created Mar 28, 2017
Kata number 2
View Kata2.cs
namespace TDDKata2
{
public class Class1
{
[Test]
public void Volume_Of_A_Cube()
{
Assert.That(new Cube(1).Volume, Is.EqualTo(1));
}
@fffej
fffej / Kata2.cs
Created Mar 28, 2017
Kata number 2
View Kata2.cs
namespace TDDKata2
{
public class Class1
{
[Test]
public void Volume_Of_A_Cube()
{
Assert.That(new Cube(1).Volume, Is.EqualTo(1));
}
View keybase.md

Keybase proof

I hereby claim:

  • I am fffej on github.
  • I am fffej (https://keybase.io/fffej) on keybase.
  • I have a public key ASCtXvHaI1pD3pxRMPMztq_UbLFSSj5-SrqYGgvpJjxIogo

To claim this, I am signing this object:

View gist:6053800
@mixin border {
border: 1px solid #333;
}
article.post {
background: #eee;
@include border;
}
ul.menu {
background: #ccc;
@include border;
View gist:5419140
private LiveDatabase RefreshLiveDatabase(LiveDatabase source, int whichDatabase)
{
source.Cleanup();
var original = whichDatabase == 1 ? m_DB1Original : m_DB2Original;
return original.ToLive();
}
@fffej
fffej / FortuneIndexer.hs
Created Jun 2, 2011
Index some fortune cookies
View FortuneIndexer.hs
{-# LANGUAGE OverloadedStrings #-}
module FortuneIndexer (
getTerm
) where
import Control.Monad (forM_)
import Data.List.Split (splitOn)
import Data.Char (isLetter, isSpace)
import Data.Text.Encoding as E
@fffej
fffej / GameOfLife.R
Last active Nov 10, 2015
Game of Life in R
View GameOfLife.R
# Game of life. Based on a matrix representation with cells being in either
# alive (1) or dead (0) state.
nextStep <- function(grid) {
w = ncol(grid)
h = nrow(grid)
out = matrix(0,nrow=h,ncol=w)
for (i in 1:w) {
for (j in 1:h) {
View Minesweeper.hs
module Minesweeper where
import Data.List (delete, maximumBy)
import Data.Char (intToDigit, digitToInt)
import Data.Ord (comparing)
import Test.QuickCheck
-- Tests!
newtype InputFormat = InputFormat [String] deriving (Show)
instance Arbitrary InputFormat where
@fffej
fffej / gist:4135446
Created Nov 23, 2012
WWII Pigeon Message
View gist:4135446
AOAKN HVPKD FNFJW YIDDC
RQXSR DJHFP GOVFN MIAPX
PABUZ WYYNP CMPNW HJRZH
NLXKG MEMKK ONOIB AKEEQ
WAOTA RBQRH DJOFM TPZEH
LKXGH RGGHT JRZCQ FNKTQ
KLDTS FQIRW AOAKN 27 1525/6
You can’t perform that action at this time.