Skip to content

Instantly share code, notes, and snippets.

Ming Han Teh minghan

Block or report user

Report or block minghan

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
@akimboyko
akimboyko / gist:4593576
Created Jan 22, 2013
Ninject factory with custom naming instance provider
View gist:4593576
void Main()
{
using(var kernel = new StandardKernel(new CarModule()))
{
kernel.Load<FuncModule>(); // for sake of LinqPAD
var factory = kernel.Get<ICarFactory>();
Assert.That(factory, Is.Not.Null);
@e000
e000 / donotuse.py
Created Jun 13, 2011
How to NEVER use lambdas.
View donotuse.py
##########################################################
# How to NEVER use Lambdas. An inneficient and yet educa-#
# tonal guide to the proper misuse of the lambda constru-#
# ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] #
# by: e000 (13/6/11) #
##########################################################
## Part 1. Basic LAMBDA Introduction ##
# Well, it's worth diving straight into what lambdas are.
# Lambdas are pretty much anonymous "one line" functions
You can’t perform that action at this time.