module FizzbuzzImperative =
let nums = [1..100]
let fizzbuzzImperative i =
if i % 3 = 0 && i % 5 = 0 then
printfn "fizzbuzz"
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
set number | |
set relativenumber | |
set ignorecase | |
set smartcase | |
let mapleader = "\<Space>" | |
nnoremap - ^ | |
nnoremap + $ | |
nnoremap <Tab> :bnext<cr> | |
nnoremap <M-o> <C-]> |
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
" Plugins | |
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
"Plug 'yuki-yano/fzf-preview.vim', { 'branch': 'release/rpc' } | |
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | |
" Plug 'roxma/nvim-completion-manager' |
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
using System; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace ResultMonadExample | |
{ | |
public Result<IBasket> AddToBasketV3(string productId, string customerId) |
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
using Xunit; | |
namespace SampleSpecifications | |
{ | |
//************** GENERIC SPECIFICATION (SHARED LIBRARY) *********************// | |
public interface ISpecificationVisitor<TVisitor, T> where TVisitor : ISpecificationVisitor<TVisitor, T> | |
{ | |
void Visit(AndSpecification<T, TVisitor> spec); | |
void Visit(OrSpecification<T, TVisitor> spec); | |
void Visit(NotSpecification<T, TVisitor> spec); |
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
//asdasda | |
#load @"C:/Utilities/fsharp-iteractive/load-all.fsx" | |
open System.ComponentModel | |
//#load @"C:\Utilities\fsharp-iteractive\packages\FsLab\FsLab.fsx" | |
#r "FSharp.Data.dll" | |
#r "System.Xml.dll" | |
#r "System.Xml.Linq.dll" | |
#r "FsPickler.dll" | |
#r "FsPickler.Json.dll" |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics.Contracts; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.Serialization; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
using ProtoBuf; |
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
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}]" | |
else | |
echo "" | |
fi |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace RiskControl.Common.Tools.Types |
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
interface IServiceInterfaceChannel : IServiceInterface, IClientChannel | |
{ | |
} | |
class Program | |
{ | |
void Main() | |
{ | |
var factory = new ClientFactory<IServiceInterfaceChannel>(); |