Skip to content

Instantly share code, notes, and snippets.

View pawelklimczyk's full-sized avatar

Pawel Klimczyk pawelklimczyk

View GitHub Profile

FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.


Effective Engineer - Notes

What's an Effective Engineer?

[TestFixture]
public class UsersModuleConventionTests
{
[Test]
public void AllPublicMethodsNeedToReturnOperationResult()
{
CodeWatcherConfig config = CodeWatcherConfig.Create()
.WithWatcher(c => new MethodReturnTypeWatcher(c).Configure(typeof(OperationResult<object>)))
.WatchAssembly(typeof(UsersModule).Assembly)
.Build();
/// <summary>
/// Generic class working as a wrapper
/// </summary>
/// <typeparam name="T">type</typeparam>
public class OperationResult<T>
{
/// <summary>
/// Result value
/// </summary>
public T Result { get; set; }
param (
[Parameter(Mandatory=$true)]
[string]$rootPath
)
$directories = Get-ChildItem $rootPath -Directory
$baseLocation = Get-Location
foreach($dir in $directories)
{
@pawelklimczyk
pawelklimczyk / robot.js
Created December 4, 2012 14:07
Grost100
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(10);