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
will@RubyBuntu:~ [ruby-1.9.2-p0@default] | |
$ gem i mongrel | |
Building native extensions. This could take a while... | |
ERROR: Error installing mongrel: | |
ERROR: Failed to build gem native extension. | |
/home/will/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb | |
checking for main() in -lc... yes | |
creating Makefile |
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
using NUnit.Framework; | |
public abstract class CollectionViewBaseTests | |
{ | |
// abstract factory method | |
public abstract CollectionViewBase GetView(); | |
[Test] | |
public void HasDisposableEditorManager() | |
{ |
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
// Component is an abstract base class | |
// Weld inherits from Component | |
// Weld has additional properties in DetailWeld table | |
public class ComponentMap : ClassMap<Component> | |
{ | |
public ComponentMap() | |
{ | |
Table("Component"); | |
CompositeId().KeyProperty(x => x.ItemId).KeyProperty(x => x.RevNo); |
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
C:\Dev\AutoTest.Net>build | |
NAnt 0.86 (Build 0.86.3412.0; nightly; 5/5/2009) | |
Copyright (C) 2001-2009 Gerry Shaw | |
http://nant.sourceforge.net | |
Buildfile: file:///C:/Dev/AutoTest.Net/build/default.build | |
Target framework: Microsoft .NET Framework 3.5 | |
Target(s) specified: go | |
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
DataTableReader dataReader = dataTable.CreateDataReader(); | |
return Mapper.Map<IDataReader, IEnumerable<T>>(dataReader); |
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
C:\Dev\AutoMapper [(v1.1)]> .\go.bat | |
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007) | |
Copyright (C) 2001-2007 Gerry Shaw | |
http://nant.sourceforge.net | |
Buildfile: file:///C:/Dev/AutoMapper/AutoMapper.build | |
Target framework: Microsoft .NET Framework 3.5 | |
Target(s) specified: test | |
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
require 'yajl' | |
require 'twitter' | |
# Configure twitter | |
# Need to create an App with twitter first | |
# Your OAuth tokens can then be found by clicking "My Access Token" | |
Twitter.configure do |config| | |
config.consumer_key = YOUR_CONSUMER_KEY | |
config.consumer_secret = YOUR_CONSUMER_SECRET | |
config.oauth_token = YOUR_OAUTH_TOKEN |
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
<Import Project=".\MSBuild.Community.Tasks.Targets"/> | |
<PropertyGroup> | |
<Company>My Company</Company> | |
<Product>My Product</Product> | |
<Version>1.0.0.0</Version> | |
</PropertyGroup> | |
<Target Name="UpdateBuildInfo"> | |
<XmlUpdate XmlFileName=".\_BuildInfo.xml" XPath="//buildInfo/projectName" Value="$(Product)" /> | |
<XmlUpdate XmlFileName=".\_BuildInfo.xml" XPath="//buildInfo/companyName" Value="$(Company)" /> | |
<XmlUpdate XmlFileName=".\_BuildInfo.xml" XPath="//buildInfo/version" Value="$(Version)" /> |
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
using System; | |
using MyApplication.Domain; | |
using MyApplication.Persistence; | |
using StructureMap.Configuration.DSL; | |
using StructureMap.Graph; | |
namespace MyApplication | |
{ | |
public class GenericRepositoryRegistrationConvention : IRegistrationConvention | |
{ |
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
<Target Name="TransformT4Templates"> | |
<ItemGroup> | |
<T4Templates Include="..\**\*.tt" /> | |
</ItemGroup> | |
<Exec WorkingDirectory="$(CommonProgramFiles)\Microsoft Shared\TextTemplating\1.2" | |
Command="TextTransform "%(T4Templates.FullPath)"" /> | |
</Target> |