• Code
  • Tags
  • Users
  • Titles
  • Log in
  • Feedback
  • FAQ
Share Code
Welcome to ForkCan.com

ForkCan is all about sharing code in a social way.

Discuss, debate or argue with other devs about their or your own code.

Give other devs feedback or make a Fork (Make a better version of a shared code).

Rate the code, if you use the code mark it as used so others can see if the shared code is used by someone.

Help each other to be better devs and to be more productive.


Features not working yet:

Flag a post

Shared code feeds
Latest activity

Newest Code

Views Used Newest Oldest

87
Views
Check if the Civic Registration number for Finland is valid
By Tommy   December 09, 2011 8:25 AM
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

civicregnumber

Mark 'civicregnumber' tag as 'like'

Mark 'civicregnumber' tag as 'ignore'

0 0 0 0


58
Views
Check if the Civic Registration number for Norway is valid
By Tommy   December 09, 2011 8:22 AM
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

civicregnumber

Mark 'civicregnumber' tag as 'like'

Mark 'civicregnumber' tag as 'ignore'

0 0 0 0


214
Views
Enumerable that does not give multiple side effects on multiple enumerations
By @adam.lith "I'm a Forker"  August 30, 2011 3:39 PM
eager

Mark 'eager' tag as 'like'

Mark 'eager' tag as 'ignore'

enumeration

Mark 'enumeration' tag as 'like'

Mark 'enumeration' tag as 'ignore'

ienumerable

Mark 'ienumerable' tag as 'like'

Mark 'ienumerable' tag as 'ignore'

lazy

Mark 'lazy' tag as 'like'

Mark 'lazy' tag as 'ignore'

2 0 0 0


257
Views
Fork of GZIP your Actions in MVC if not used as standard in IIS7 or only use IIS6
By Stefan Rusek   July 25, 2011 12:00 PM

"Action FIlter for MVC to GZIP your reults if not turned on as default in IIS7 or if you use IIS6"
actionfilter

Mark 'actionfilter' tag as 'like'

Mark 'actionfilter' tag as 'ignore'

asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 1 0 0


523
Views
ActionFilter to Handle and Log Error for each Controller, ASP.NET MVC
By @fredrikn "I'm the master"  March 21, 2011 3:45 PM

"ActionFilter to handle and log exception in ASP.Net MVC 3.0"
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

exception

Mark 'exception' tag as 'like'

Mark 'exception' tag as 'ignore'

logging

Mark 'logging' tag as 'like'

Mark 'logging' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 0 0 0


435
Views
Fork of Serialize an object into a Querystring, using LINQ syntax
By @benlaan   February 17, 2011 6:03 AM

"Can be used to serialize an object to a QueryString."
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

html

Mark 'html' tag as 'like'

Mark 'html' tag as 'ignore'

linq

Mark 'linq' tag as 'like'

Mark 'linq' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

0 1 0 0


627
Views
Serialize an object into a Querystring
By @fredrikn "I'm the master"  February 16, 2011 3:07 PM

"Can be used to serialize an object to a QueryString."
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

html

Mark 'html' tag as 'like'

Mark 'html' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

0 0 0 0


510
Views
Testable DateTime.Now
By @adam.lith "I'm a Forker"  February 11, 2011 4:45 PM

"A DateTime.Now representation that can be alterd during testing."
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

datetime

Mark 'datetime' tag as 'like'

Mark 'datetime' tag as 'ignore'

testing

Mark 'testing' tag as 'like'

Mark 'testing' tag as 'ignore'

unittesting

Mark 'unittesting' tag as 'like'

Mark 'unittesting' tag as 'ignore'

0 0 0 0


429
Views
Fork of Strongly typed NotifyPropertyChanged
By @adam.lith "I'm a Forker"  January 03, 2011 1:28 PM

"Strongly typed NotifyPropertyChanged using Reflection"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

silverlight

Mark 'silverlight' tag as 'like'

Mark 'silverlight' tag as 'ignore'

wpf

Mark 'wpf' tag as 'like'

Mark 'wpf' tag as 'ignore'

0 0 0 1


455
Views
Serialize (anonymous) objects to xml
By @toha73 "Code Contributor"  December 17, 2010 3:57 PM

"Serializes anonymous objects to xml"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

xml

Mark 'xml' tag as 'like'

Mark 'xml' tag as 'ignore'

0 0 0 0


512
Views
Owin WCF Host
By @gblock   December 17, 2010 11:24 AM

"An initial cut at building an OwinHost for WCF"
c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

0 0 0 0


345
Views
Dictionary Extension for key retrieval / initialization
By @lowendahl   December 17, 2010 10:36 AM

"A extension method that encapsulates the check for a key and initialization if it isn't there. "
dictionary

Mark 'dictionary' tag as 'like'

Mark 'dictionary' tag as 'ignore'

extension

Mark 'extension' tag as 'like'

Mark 'extension' tag as 'ignore'

method

Mark 'method' tag as 'like'

Mark 'method' tag as 'ignore'

0 0 0 0


472
Views
Invoke Extension Method
By Mugi "Code Contributor"  December 01, 2010 12:16 PM

"Tired of all Invoke methods? Use this Invoke + Lambda"
.net

Mark '.net' tag as 'like'

Mark '.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

extension-method

Mark 'extension-method' tag as 'like'

Mark 'extension-method' tag as 'ignore'

invoke

Mark 'invoke' tag as 'like'

Mark 'invoke' tag as 'ignore'

threading

Mark 'threading' tag as 'like'

Mark 'threading' tag as 'ignore'

1 1 0 1


363
Views
JUnit 4 tests in JUnit 3 suite
By Mattias Jiderhamn   November 13, 2010 11:14 AM

"Include JUnit 4 classes in a JUnit 3 suite() built with DirectorySuiteBuilder fom junit-addons"
java

Mark 'java' tag as 'like'

Mark 'java' tag as 'ignore'

junit

Mark 'junit' tag as 'like'

Mark 'junit' tag as 'ignore'

0 0 0 0


1.65k
Views
Spring auto wire with mock objects
By Mattias Jiderhamn   November 12, 2010 9:02 AM

"JUnit 4 @Rule implementation that uses Mockito mocked objects for Springs AspectJ auto wiring"
aspectj

Mark 'aspectj' tag as 'like'

Mark 'aspectj' tag as 'ignore'

java

Mark 'java' tag as 'like'

Mark 'java' tag as 'ignore'

junit

Mark 'junit' tag as 'like'

Mark 'junit' tag as 'ignore'

spring

Mark 'spring' tag as 'like'

Mark 'spring' tag as 'ignore'

0 0 0 0

12345...7

Squeed
Made by: Fredrik Normén 2010