Skip to content

Instantly share code, notes, and snippets.

@rowandh
rowandh / setup.sh
Created September 13, 2018 04:41
Stratis node Ubuntu Linux service
sudo cp stratis.service /etc/systemd/system
sudo systemctl enable stratis.service
sudo systemctl start stratis.service
@rowandh
rowandh / app.module.ts
Created July 18, 2017 23:08
NativeScript + Fresco example for downloading images with headers
if (applicationModule.android) {
applicationModule.on("launch", () => {
var fetcher = new NSNetworkFetcher();
var config = com.facebook.imagepipeline.core.ImagePipelineConfig
.newBuilder(application.android.context)
.setNetworkFetcher(fetcher)
.build();
com.facebook.drawee.backends.pipeline.Fresco.initialize(application.android.context, config);
});
}
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Project
{
/// <summary>
/// Generic value object equality class
/// Based on https://lostechies.com/jimmybogard/2007/06/25/generic-value-object-equality/
/// Incldues fix for equality comparisons on subclasses
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Project.Tests
{
[TestClass]
public class ValueObjectTests
{
private class Address : ValueObject<Address>
{