This file contains hidden or 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
| module ::YourApplicationName | |
| class Application | |
| include Rake::DSL | |
| end | |
| end | |
| module ::RakeFileUtils | |
| extend Rake::FileUtilsExt | |
| end |
This file contains hidden or 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
| if "irb" == $0 | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| ActiveResource::Base.logger = Logger.new(STDOUT) | |
| end |
This file contains hidden or 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 NAnt.Core; | |
| using NAnt.Core.Attributes; | |
| namespace SyncNAntTask | |
| { | |
| [ElementName("database")] | |
| public class DatabaseInfo : Element | |
| { | |
| [TaskAttribute("folder", Required = true)] | |
| public string Folder { get; set; } |
This file contains hidden or 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
| var Patterns = {}; | |
| Patterns.Nokia = function(){ | |
| this.getPrice = function(){ | |
| return 200; | |
| }; | |
| }; | |
| Patterns.Motorola = function(){ | |
| this.getPrice = function(){ |
This file contains hidden or 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" ?> | |
| <configuration> | |
| <configSections> | |
| <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler,ArtOfTest.WebAii, Version=1.1.900.0, Culture=neutral, PublicKeyToken=4FD5F65BE123776C"/> | |
| </configSections> | |
| <WebAii.Settings | |
| annotateExecution="false" | |
| baseUrl="http://www.google.com/" | |
| clientReadyTimeout="50000" | |
| defaultBrowser="InternetExplorer" |
This file contains hidden or 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 abstract class FactoryBase | |
| { | |
| public abstract Product FactoryMethod(int type); | |
| } | |
| public class ConcreteFactory : FactoryBase | |
| { | |
| public override Product FactoryMethod(int type) | |
| { | |
| switch (type) |
This file contains hidden or 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
| #bargraphHorizontal{ | |
| font:0.7em Arial; | |
| border:1px solid #ccc; | |
| } | |
| #bargraphHorizontal th{ | |
| font-weight:normal; | |
| } | |
| #bargraphHorizontal td{ | |
| padding:1px 0; | |
| margin:0; |
This file contains hidden or 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
| Create Table DeliveryType ( | |
| DeliveryTypeID int not null | |
| Constraint pk_DeliveryType_DeliveryTypeID primary key, | |
| DeliveryTypeDescription varchar(10) not null, | |
| DeliveryCharge smallmoney not null | |
| ) | |
| Create Table DeliveryTypeChanges ( | |
| ChangeID int identity(1,1) not null | |
| Constraint pk_DeliveryTypeChanges_ChangeID primary key, |
This file contains hidden or 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; | |
| namespace Patterns.Strategy | |
| { | |
| internal class Program | |
| { | |
| private static void Main(string[] args) | |
| { | |
| var array = new[] {"a", "b", "c", "d", "e"}; |
This file contains hidden or 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
| create_table :products, :id => false do |t| | |
| t.string :uuid, :limit => 36, :primary => true | |
| end |
NewerOlder