Subscribe to The Madman Scribblings        RSS Feed
- - - - -

BrainF*ck Interpreter In Just 3 LoC

Icon 1 Comments
I've managed to squeeze a BrainF*ck Interpreter into just 3 line of vb.net code.

...
- - - - -

A Simple Memoization Function Class.

Icon 1 Comments
A Simple Memoization Function Class.

Memoization is simply remembering the previous worked out answers for the value inputted for the function.
...
- - - - -

Exts (NuGet Packages)

Icon Leave Comment
Exts

I've gotten round to releasing a set of NuGet packages that have be laying around on my system for a while.
Note:- These packages require .net4.5.

The packages are updated version of the Exts...
- - - - -

The Kernal Of Tic-Tac-Toe (Part 2)

Icon Leave Comment
The Kernal Of Tic-Tac-Toe (Part 2)

I added a new game state ReadyToPlay because I had a issue with the kernel outputting the blank board.
Public Enum GameStates  ReadyToPlay  Playing  Win_Player1  Win_Player2  Drawn  Invalid_State  Invalid_MoveEnd Enum
...
- - - - -

The Kernal Of Tic-Tac-Toe

Icon Leave Comment
The Kernal Of Tic-Tac-Toe

Kernel Basics
What does the kernel have to do the keep track of a game of Tic-Tac-Toe.
I reckon the following isn't to far off the mark.
...
- - - - -

A Simple Image Cache

Icon 1 Comments
A Simple Image Cache

Suppose your application downloads images and those images don't change that often.
It would be better to keep a cache of those images, and then only download the images you need.



Images

...
- - - - -

Are there any 2-D Lexers / Parsers?

Icon 8 Comments
More of an Ask. Is there any 2-D Lexers / Parsers?

All parsers I know read the input text as if it was a stream of characters.

Left To Right, Top to Bottom

Example source text.
 a ::= [ 1 2 3 ]        4 5 6        1 2 3b ::= [ 4 5 6 ]         7 8 9 


I can sort of define the grammar like so
...
- - - - -

FizzBuzz in Single Line Of Code

Icon 16 Comments
FizzBuzz in Single Line Of Code

...
* * * * *

6000+ Kudos

Icon 6 Comments
6000+ Kudos

Recently I broke through the 6000 Kudos barrier.
So I wrote small program to screen-scrap the contributions page so I could do a breakdown of all my contributions by language section.

Still not quite got the full A-Z in both snippets and tutorials.
...
- - - - -

Pseudo-Constants

Icon 4 Comments
Pseudo-Constants

Sometime you need a Constant that is calculated at run-time.

So how would you do it?

Spoiler

  • (14 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »