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
Bootstrap | |
.Assemblies(scan => { | |
scan.Include().FromType<Type>(); | |
scan.Include().Assembly(Assembly); | |
scan.Include().StartsWith(string); | |
scan.Include().Contains(string); | |
scan.Include().LoadedAssemblies(); | |
scan.Include().ReferencedAssemblies(); | |
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
Kick.Start(config => { | |
config | |
.IncludeLoadedAssemblies() | |
.IncludeReferencedAssemblies() | |
.IncludeAssemblyFor<Type>() | |
.IncludeAssembly(Assembly) | |
.IncludeName(string) | |
.ExcludeAssemblyFor<Type>() |
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
Task Output -Depends Compile { | |
“Copy Outputs...” | |
$xf = @("*.log", "*.txt", "*.md", "*.xml", "*.pdb") | |
$xd = @(".git", "obj") | |
& robocopy "$SourceDir\bin\$BuildConfig" "$BuildDir\Output" $np /XF $xf /XD $xd /NP | |
if ($lastexitcode -ge 8) { | |
throw ("RoboCopy: Error copying files.") |
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
@echo off | |
for /F "tokens=1* delims= " %%A in ('date /T') do set CDATE=%%B | |
for /F "tokens=1,2 eol=/ delims=/ " %%A in ('date /T') do set mm=%%B | |
for /F "tokens=1,2 delims=/ eol=/" %%A in ('echo %CDATE%') do set dd=%%B | |
for /F "tokens=2,3 delims=/ " %%A in ('echo %CDATE%') do set yyyy=%%B | |
set datePart=%yyyy%-%mm%-%dd% | |
set backPath=D:\Backup\Back-%datePart% |
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 void HttpClientPost(){ | |
// post data | |
var post = new Dictionary<string, string>() | |
{ | |
{ "grant_type", "refresh_token" }, | |
{ "client_id", consumerkey }, | |
{ "client_secret", consumerSecret }, | |
{ "refresh_token", refreshToken } | |
}; | |
var content = new FormUrlEncodedContent(post); |
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 TestCase | |
{ | |
public void Configure() | |
{ | |
DataGenerator.Configue(c => c | |
.Entity<User>(m => | |
.AutoMap() | |
.Map(e => { | |
e.Property(p => p.FirstName).DataSource<FirstNameSource>(); | |
e.Property(p => p.LastName).DataSource<LastNameSource>(); |
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 MongoRepository<TEntity> | |
where TEntity : class | |
{ | |
private static readonly Lazy<string> _collectionName; | |
private static int _mappingInitialized = 0; | |
private static int _indexingInitialized = 0; | |
private readonly Lazy<MongoCollection<TEntity>> _collection; | |
private readonly MongoUrl _mongoUrl; |
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
{ | |
"_id" : ObjectId("5184219b545eb455aca34390"), | |
"TimeStamp" : ISODate("2013-05-03T20:44:11Z"), | |
"Level" : "Error", | |
"LoggerName" : "NLog.Mongo.ConsoleTest.Program", | |
"Message" : "Error reading file 'blah.txt'.", | |
"Exception" : { | |
"Message" : "Could not find file 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'.", | |
"Text" : "System.IO.FileNotFoundException: Could not find file 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'.\r\nFile name: 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'\r\n at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n at System.IO.FileS |
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
{ | |
"_id" : ObjectId("5184219b545eb455aca34391"), | |
"Date" : "2013-05-03 15:44:11.7942", | |
"Level" : "Error", | |
"Message" : "Error reading file 'blah.txt'.", | |
"Logger" : "NLog.Mongo.ConsoleTest.Program", | |
"Exception" : "System.IO.FileNotFoundException: Could not find file 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'.\r\nFile name: 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'\r\n at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLong |
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
/* slider */ | |
.sliderLabel | |
{ | |
border: 1px solid; | |
border-color: #e4e4e4 #e4e4e4 #bebebe; | |
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | |
-moz-border-radius: 5px; | |
-webkit-border-radius: 5px; | |
-ms-border-radius: 5px; | |
border-radius: 5px; |
OlderNewer