This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="_customerNumber" access="field" not-null="true" /> | |
<property name="CustomerNumber" access="field.camelcase-underscore" not-null="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DomainValueObject] | |
public struct Money | |
{ | |
public static readonly NumberFormatInfo DefaultCurrencyFormat = CultureInfo.CurrentCulture.NumberFormat; | |
public static readonly Money Zero = new Money(0); | |
private readonly decimal _value; | |
private readonly string _currencyCode; | |
public string CurrencyCode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="BuildComplete" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- General Paths --> | |
<RootPath>$(MSBuildProjectDirectory)</RootPath> | |
<SrcPath>$(RootPath)\src</SrcPath> | |
<ReportsPath>$(RootPath)\reports</ReportsPath> | |
<ToolsPath>$(RootPath)\tools</ToolsPath> | |
<Packages>$(SrcPath)\packages</Packages> | |
<ExternalLib>$(SrcPath)\lib</ExternalLib> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was trying to find a way to finally enter in the open-source world. I've been promising to start to contribute long time ago, but never have the time and effort to do so. | |
However the promise still stands! I am decided to participate in an open-source project, either .net or ruby, it does not matter. | |
As an introduction I've created a list with importants tips. | |
1)Great web site to find projects and interact with people. | |
http://www.ohloh.net/ | |
2)Research how to access IRCClient. | |
3)Create an account in stackoverflow.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
**Add automaticaly creating an alias** | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class TestHelpers | |
{ | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out); | |
} | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#variables | |
$url = 'http://localhost:8080/jnlpJars/jenkins-cli.jar'; | |
$jenkinsTempCliDir = Join-Path $env:TEMP "jenkinsClient" | |
if (![System.IO.Directory]::Exists($jenkinsTempCliDir)) {[System.IO.Directory]::CreateDirectory($jenkinsTempCliDir)} | |
$file = Join-Path $jenkinsTempCliDir "jenkins-cli.jar" | |
#functions | |
function Download-File { | |
param ( [string]$url, [string]$file ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Sagas | |
{ | |
using System; | |
using System.Collections.Generic; | |
class Program | |
{ | |
static ActivityHost[] processes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to update an XPO schema and create the XPObjectType table | |
using (Session session = new Session()) | |
{ | |
//Here we select one class from each assembly that contains XPO classes | |
//For example User is one of our XPO object model classes | |
Assembly[] array = { typeof(User).Assembly, typeof(XPObjectType).Assembly }; | |
session.UpdateSchema(array); | |
} |
OlderNewer