- checkout doc
- create subfolder www/
- generate content in www/
- commit content in www/
git subtree split --prefix www -b gh-pages
- add and commit more content to www/
git subtree push --prefix www origin gh-pages
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{"series":[{"columns":["ts","2","3","4","5","6","7","8"],"name":"01f542c9-c3ce-4c1e-ae00-9c601240823c","points":[[1633039200000,null,9251,0,null,null,25.4,24.4],[1633040100000,null,9251,0,null,null,25.4,24.4],[1633041000000,null,null,null,null,null,null,null],[1633041900000,null,9251,0,null,null,25.4,24.4],[1633042800000,null,9252,0,null,null,25.4,24.3],[1633043700000,null,9252,0,null,null,25.4,24.3],[1633044600000,null,null,null,null,null,null,null],[1633045500000,null,9252,0,null,null,25.4,24.3],[1633046400000,null,9253,0,null,null,25.4,24.3],[1633047300000,null,9253,0,null,null,25.4,24.3],[1633048200000,null,null,null,null,null,null,null],[1633049100000,null,9253,0,null,null,25.4,24.3],[1633050000000,null,9254,0,null,null,25.4,24.3],[1633050900000,null,null,null,null,null,null,null],[1633051800000,null,9254,0,null,null,25.4,24.3],[1633052700000,null,9254,0,null,null,25.4,24.3],[1633053600000,null,9255,0,null,null,25.4,24.3],[1633054500000,null,null,null,null,null,null,null],[1633055400000,null,9255,0,null, |
This file contains hidden or 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
export const DECIMAL_PLACES = 1 | |
// it may have some rounding problems in some cases, but we should be good | |
export const round = (n: number, decimals: number = DECIMAL_PLACES): number => { | |
const abs = n < 0 ? Math.abs(n) : n | |
const factorOfTen = Math.pow(10, decimals) | |
const rounded = Math.round(abs * factorOfTen) / factorOfTen | |
const result = abs === n ? rounded : -rounded |
This file contains hidden or 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
describe("leftFromFirst", () => { | |
const testSpec = [ | |
{args: [null, "lazy lazy fox jumped"], value : null, desc : "substring not found"}, | |
//{args: ["", "lazy lazy fox jumped"], value : null, desc : "substring not found"}, | |
{args: [null, ""], value : null, desc : "(null, '') --> null"}, | |
{args: [null, null], value : null, desc : "(null, null) --> null"}, | |
{args: [null, null], value : null, desc : "(null, null) --> null"}, | |
//{args: ["", ""], value : null, desc : "(*, '') --> ''"}, | |
//{args: ["", null], value : '', desc : "(*, null) --> ''"}, | |
] |
This file contains hidden or 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
[Test] | |
[TestCase(2, 1, true)] | |
[TestCase(1, 2, false)] | |
[TestCase(1, 1, false)] | |
[TestCase(null, 1, false)] | |
[TestCase(1, null, false)] | |
[TestCase(null, null, false)] | |
public void Snippets_Are_Equivalent(int? qty1, int? qty2, bool result) | |
{ | |
bool shouldCompare = qty1 != null && qty2 != null; |
This file contains hidden or 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; | |
using BreakingChangeAnatomy.Library; | |
using BreakingChangeAnatomy.Library.ChildNs; | |
namespace BreakingChangeAnatomy.Client | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or 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
internal interface ICurrencyInfoProvider | |
{ | |
CurrencyInfo Get(CurrencyIsoCode code); | |
} | |
// not a "real" marker interface | |
internal interface ICurrencyInfoInitializer : ICurrencyInfoProvider, IDisposable { } |
This file contains hidden or 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
int even = 2, odd = 3; | |
// meh | |
Assert.That(even % 2, Is.EqualTo(0)); | |
// slightly better (message) | |
Assert.That(odd % 2, Is.Not.EqualTo(0), "Number must be odd"); | |
// better | |
Assert.That(odd, new EvenContraint()); | |
// best | |
Assert.That(even, Must.Be.Even()); |
This file contains hidden or 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
internal class SampleFilter : ISchemaFilter | |
{ | |
public void Apply(Schema model, SchemaFilterContext context) | |
{ | |
var attribute = context.SystemType.GetCustomAttribute<HasCustomSampleAttribute>(); | |
if (attribute != null) | |
{ | |
model.Example = attribute.BuildExample(context.SystemType); | |
} | |
} |
This file contains hidden or 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 AClassWithOneMethod | |
{ | |
public static int GetOrdering(string someName, SomeAttributeDefinition someAttributeDefinition) | |
{ | |
if (SomeConstants.ACollection.Exists(x => x == someName)) | |
return 20; | |
switch (someName) | |
{ | |
case SomeConstants.AConstant: | |
return 10; |
NewerOlder