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 the PowerShell Module or Package Manager Console | |
Using the module is not much different than the script itself except for a couple of changes. | |
To init a Chewie file once the module is imported you can : | |
PS>Initialize-Chewie | |
Once you import the module you can get can get chewie doing its thing by calling : | |
PS>Invoke-Chewie |
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
#ignore thumbnails created by windows | |
Thumbs.db | |
#Ignore files build by Visual Studio | |
*.obj | |
*.exe | |
*.pdb | |
*.user | |
*.aps | |
*.pch | |
*.vspscc |
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"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildAndPublish"><PropertyGroup><SourceFileRootFolder>D:\Projects\SampleSite\Source</SourceFileRootFolder><ReleaseFolder>D:\Projects\SampleSite\Builds\Latest Build\Build</ReleaseFolder></PropertyGroup><ItemGroup> | |
<!-- This definition will be used below on the copy task --> | |
<SampleSiteBin Include="$(SourceFileRootFolder)\bin\**\*.*"/></ItemGroup> | |
<!-- Cleaning task --> | |
<Target Name="CleanTarget"><Message Text="Removing all source files from $(ReleaseFolder)"/><RemoveDir Directories="$(ReleaseFolder)\"/></Target> | |
<!-- Build and publish task --> | |
<Target Name="BuildAndPublish"> | |
<!-- Building site --> | |
<MSBuild Targets="Clean;Build" Projects="$(SourceFileRootFolder)\SampleSite.sln"/><CallTarget Targets="CleanTarget"/> |
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
chew 'jQuery.vsdoc' | |
chew 'EntityFramework' | |
chew 'elmah' | |
chew 'MvcScaffolding' | |
chew 'MVCHtml5Toolkit' | |
chew 'DataAnnotationsExtensions.MVC3' |
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 class Global : System.Web.HttpApplication | |
{ | |
void Application_Start(object sender, EventArgs e) | |
{ | |
// Code that runs on application startup | |
} | |
void Application_End(object sender, EventArgs e) |
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 class ResourceManifest : IResourceManifestProvider { | |
static readonly string GOOGLE_ROOT = "//ajax.googleapis.com/ajax/libs/{0}/{1}/{2}"; | |
public void BuildManifests(ResourceManifestBuilder builder) { | |
var manifest = builder.Add(); | |
SetPath(manifest.DefineScript("jquery"), "1.5.2", "jquery.min.js", "jquery.js"); | |
SetPath(manifest.DefineScript("jqueryui"), "1.8.11", "jquery-ui.min.js", "jquery-ui.js").SetDependencies("jquery"); | |
SetPath(manifest.DefineScript("chrome-frame"), "1.0.2", "CFInstall.min.js", "CFInstall.js"); | |
SetPath(manifest.DefineScript("dojo"), "1.6.0", "dojo.xd.js", "dojo.xd.js.uncompressed.js"); |
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
#ignore thumbnails created by windows | |
Thumbs.db | |
#Ignore files build by Visual Studio | |
*.obj | |
*.exe | |
*.pdb | |
*.user | |
*.aps | |
*.pch | |
*.vspscc |
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.Xml.Serialization; | |
using System.IO; | |
using System; | |
namespace SoftwareSingularity.Utility | |
{ | |
public class XmlMemorySerializer | |
{ | |
// TODO: Make this a generic class <T> | |
private const string NAMESPACE_PREFIX = "examplews"; |
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 class ApiSettings | |
{ | |
public static ILog _logger = LogManager.GetLogger(typeof(ApiSettings)); | |
// Use enums to prevent typos | |
public enum ConfigurationKeys | |
{ | |
YesMailDomain, | |
YesMailUserName, | |
YesMailPassword, |
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
body{ margin: 0; position: relative; } | |
.page-width { width: 960px; margin: 0 auto; } | |
/* BEGIN: side borders */ | |
#border-wrapper { | |
z-index: 100; | |
position: absolute; | |
width: 100%; | |
height: 100%; |
OlderNewer