Skip to content

Instantly share code, notes, and snippets.

View alexfalkowski's full-sized avatar

Alejandro Falkowski alexfalkowski

View GitHub Profile
@alexfalkowski
alexfalkowski / nanoc.rb
Last active August 29, 2015 14:16
Nanoc Refactor
require 'stringex'
usage 'create-post [options] title'
aliases :create_post, :cp
summary 'create a new blog post'
description 'Creates new blog post with standard template.'
flag :h, :help, 'show help for this command' do |value, cmd|
puts cmd.help
exit 0

Background

This article is a response for the following feature:

@javascript
 
Feature: Filter enable/disable
 
Scenario: Using the filter with resources
@alexfalkowski
alexfalkowski / Pop3Server.cs
Created April 23, 2013 10:19
The implementation of the in-memory POP3 server.
using System;
using System.IO;
using System.Net;
using System.Text;
using LumiSoft.Net;
using LumiSoft.Net.POP3.Server;
namespace MockEmail
{
public class Pop3Server : IDisposable
@alexfalkowski
alexfalkowski / MockEmailServerSpec.cs
Created April 23, 2013 10:12
Specs for the Pop3Server
using System.Spec;
using FluentAssertions;
using LumiSoft.Net;
using LumiSoft.Net.Mail;
using LumiSoft.Net.POP3.Client;
using MockEmail.Specs.Properties;
namespace MockEmail.Specs
{
public class MockEmailServerSpec : Specification