Skip to content

Instantly share code, notes, and snippets.

View bsommardahl's full-sized avatar

Byron Sommardahl bsommardahl

View GitHub Profile
What is the scrum master?
What is the meeting where the scrum team holds each other accountable and looks ahead?
What is the time period for a typical sprint?
@bsommardahl
bsommardahl / AppVeyorArtifact
Last active August 29, 2015 14:04
AppVeyor Build Report Structure
public class AppVeyorArtifact
{
public string FileName { get; set; }
public string Name { get; set; }
public string Type { get; set; }
public int Size { get; set; }
public string Url { get; set; }
}
<?xml version='1.0' encoding='utf-8' ?>
<widget id="com.invio.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0" versionCode="110" version="1.1">
<name>Invio</name>
<description>
Toma control de sus fondos de nuevo.
</description>
<author email="[email protected]" href="http://invio.hn">
Invio Dev Team
</author>
@bsommardahl
bsommardahl / gist:6ed2ccd3d80df0effbef
Created June 18, 2014 00:51
Rake output from 'master' branch.
$ rake
Bundler and all the gems need to be installed prior to running this rake script.
Installing...
Successfully installed bundler-1.6.3
1 gem installed
Installing ri documentation for bundler-1.6.3...
Installing RDoc documentation for bundler-1.6.3...
bundle install
Using rake 10.1.1
Using mini_portile 0.5.2
@bsommardahl
bsommardahl / gist:8605208
Last active January 17, 2024 15:42
RTD Client in C#
public interface IRtdClient
{
object GetValue(params object[] args);
}
public class RtdClient : IRtdClient
{
readonly string _rtdProgId;
static IRtdServer _rtdServer;
public class ConvertVoidsToFireAndForget : System.Web.Http.Filters.ActionFilterAttribute
{
public override void OnActionExecuted(System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext)
{
if (actionExecutedContext.Exception == null)
{
Type returnType = actionExecutedContext.ActionContext.ActionDescriptor.ReturnType;
if (returnType == null || returnType.Name == "void")
actionExecutedContext.Response = new HttpResponseMessage(HttpStatusCode.OK)
{
public class when_fetching_physician_preferences_by_physician
{
const int PhysicianId = 876543;
static IEnumerable<PhysicianPreference> _result;
static Mock<IReadOnlyRepository> _mockedRepository;
static PhysicianPreferencesFetcher _fetcher;
static List<PhysicianPreference> _expectedListOfPreferences;
Establish context =
() =>
_mockedRepository
.Setup(x => x.Query(ThatHas.AnExpressionFor<PhysicianPreference>()
.ThatMatches(correctPreference)
.And().ThatDoesNotMatch(deletedPreference)
.Build()))
.Returns(_expectedListOfPreferences);