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
let inline speak (a: ^a) = | |
let x = (^a : (member Name: string) (a)) | |
printfn "I'm %s" x | |
let y = (^a : (member talk: unit -> string) (a)) | |
printfn "I say %s" y | |
//type Duck = | |
// { Name : string } // Name is not property in F# 2.0 | |
// | |
// member x.talk() = "quackity quack" |
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
#!/bin/sh | |
PREFIX="from now" | |
MESSAGE="[${PREFIX}] `date +\"%Y/%m/%d %T\"`" | |
get_amend() { | |
if [ -z `git log --pretty=oneline -1 | cut -d " " -f 2- | grep "^\[${PREFIX}]"` ] | |
then | |
return 1 | |
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
Option Explicit | |
Private xSource As Variant | |
Private xLbRow As Long | |
Private xUbRow As Long | |
Private xLbCol As Long | |
Private xUbCol As Long | |
Private xIndexes As Variant |
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
// Microsoft.CSharpγεη §γ«θΏ½ε γγγγ¨ | |
open System.Reflection | |
open System.Runtime.CompilerServices | |
open Microsoft.FSharp.Reflection | |
open Microsoft.CSharp.RuntimeBinder | |
let convert (inp:obj) : 'res = | |
inp |> unbox |
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
nnoremap <Space>gn :<C-u>w<CR>:Git now<CR> | |
nnoremap <Space>gN :<C-u>w<CR>:Git now --all<CR> |
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.Linq; | |
using System.Text; | |
using System.Reflection; | |
#pragma warning disable 0414 | |
namespace Enumγ«ζθ»γͺζ‘εΌ΅γθΏ½ε γγ試㿠| |
{ |
NewerOlder