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
// re-factored as extension methods on user; updated Sold to use named-args as well | |
var transactions = new[] | |
{ | |
theUser.StartedOn(monday), | |
theUser.Bought(2000, of: AYB, @for: 1980, on:tuesday), | |
theUser.Bought(3000, of: AYB, @for: 3204, on:tuesday), | |
theUser.Sold(1500, of: AYB, @at:1750, on:wednesday), | |
theUser.Bought(5000, of:AIK, @for:10000, on:wednesday), | |
theUser.Bought(4000, of:AKVA, @for: 40000, on:thursday), |
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 System.Linq; | |
using System.Text; | |
namespace BomEncoding | |
{ | |
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
[core] | |
autocrlf = false | |
editor = n.exe | |
excludesfile = C:/Users/johns/.gitignore | |
[color] | |
ui = auto | |
status = auto | |
diff = auto | |
branch = auto | |
[user] |
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
loadOneAction(context, payload, done) { | |
//NOTE: This really requires a check that loadAll has completed. | |
// So something like context.ensure('LOAD_BOOKPILES_SUCCESS')... | |
//NOTE: called from the router, so route info is passed on .params | |
return loadData(function(err) { | |
console.log(err); | |
context.dispatch('LOAD_BOOKPILES_ERROR', {}); |
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
body, html { | |
background: linear-gradient( | |
rgba(0, 0, 0, 0.6), | |
rgba(0, 0, 0, 0.6) | |
), | |
url(/assets/images/inspiring-cafe-interior-of-despresso-library.jpg) top left no-repeat; | |
background-size: cover; | |
background-attachment: fixed; | |
} |
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
[alias] | |
# common aliases - acquired from many places... | |
# operations | |
b = branch | |
cl = clone | |
ci = commit | |
amend = commit --amend --no-edit | |
st = status --short --branch |
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
{ | |
"locked": false, | |
"version": 2, | |
"targets": { | |
"DNXCore,Version=v5.0": { | |
"Microsoft.AspNet.Antiforgery/1.0.0-beta8-15653": { | |
"type": "package", | |
"dependencies": { | |
"Microsoft.AspNet.DataProtection": "1.0.0-beta8-15615", | |
"Microsoft.AspNet.Http.Abstractions": "1.0.0-beta8-15630", |
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.Net.Http.Headers; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Api.Services; | |
using IdentityModel.Client; | |
using Microsoft.Extensions.Caching.Distributed; | |
using Microsoft.Extensions.Caching.Memory; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Options; |
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 System.Diagnostics; | |
using System.Threading.Tasks; | |
using System.Threading.Channels; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Threading; | |
namespace ChannelsDemo | |
{ |