- Anjunadeep Editions on SoundCloud #deephouse.
View music-to-code-by.md
View SleepingGame.fs
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
open System | |
open System | |
open System.ComponentModel | |
let readLine () = | |
Console.ReadLine().ToLower() | |
let exit () = | |
printfn "\r\nByyyyyyyyyyeeeeeeeeeeeeeee zzzzzzzzzzzzzzzzzzzz\r\n" | |
0 |
View AmazingElmInsight.md
A finely curated list of resources used to my inform my adventures with Elmish:
- Thread on routing philosphy. The options and some guidance from experience.
View reactquerybuilder.fs
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
module ReactQueryBuilder | |
open Fable.Core | |
open Fable.Import | |
open Fable.Import.React | |
open Fable.Core.JsInterop | |
open Fable.Helpers.React.Props | |
open System | |
// TODO |
View Program.cs
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
//install-package Autofac. | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using Autofac; | |
namespace Funcofac | |
{ | |
class Program |
View Issue261.fs
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
module IssueInvestiations | |
open Xunit | |
open Enticify.Promotions | |
[<Fact>] | |
let ``Issue 261 - item and shipping discount interaction`` () = | |
let (basket, orderForm) = | |
createBasket |
View reset-bundle.fsx
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
(* | |
Reset Pathogen Bundles from Github and Vim.org | |
__IMPORTANT__ | |
* THIS SCRIPT WILL DELETE ALL BUNDLES IN YOUR PATHOGEN BUNDLE FOLDER. | |
* THIS SCRIPT MAY BE X-PLAT BUT I'VE NOT TESTED IT, SO I DOUBT IT IS. | |
* THERE IS NOT MUCH IN THE WAY OF ERROR RECOVER IN THIS SCRIPT. | |
__Installation__ | |
1. Install Pathogen https://github.com/tpope/vim-pathogen |
View person.cs
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
[CompilationMapping(SourceConstructFlags.RecordType)] | |
[Serializable] | |
public sealed class Person : IEquatable<Program.Person>, IStructuralEquatable, IComparable<Program.Person>, IComparable, IStructuralComparable | |
{ | |
[DebuggerBrowsable(DebuggerBrowsableState.Never)] | |
internal string Name@; | |
[DebuggerBrowsable(DebuggerBrowsableState.Never)] | |
internal string Surname@; | |
[CompilationMapping(SourceConstructFlags.Field, 0)] | |
public string Name |
View gist:3518432
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
EnvironmentHelper.fs | |
let isUnix = System.Environment.OSVersion.Platform = System.PlatformID.Unix | |
let platformInfoAction (psi:ProcessStartInfo) = | |
if isUnix && psi.FileName.EndsWith ".exe" then | |
psi.Arguments <- psi.FileName + " " + psi.Arguments | |
psi.FileName <- "mono" | |
ProcessHelper.fs |
View ProductDisplayWithPromoInformation.cs
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 class ProductDisplayWithPromoInfo | |
{ | |
public ProductDisplayDto CreateProductDisplayDto(Product product) | |
{ | |
//Get the PromoShoutOutService | |
var shoutOutService = PromotionContext.Current().CreatePromoShoutOutService(); | |
//Get the explicitly configured shouts outs for the product (the ones with ShoutOut in the CS discount comment field) | |
var productPromoShoutOuts = shoutOutService.GetPromoShoutOutsForProduct(product, ShoutOutSelection.ExplicitlyConfiguredForShoutOut); |
NewerOlder