I hereby claim:
- I am cannorin on github.
- I am cannorin (https://keybase.io/cannorin) on keybase.
- I have a public key whose fingerprint is 84B6 7F6C 065D 9A06 ABAC 20D3 B26B 2660 3BB2 B8DB
To claim this, I am signing this object:
ref: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/effects/ | |
getting started: | |
1. put LongPressedEffect.fs in the netstandard/shared project | |
2. put LongPressedEffect.{iOS,Android}.fs in the corresponding platform project | |
3. use the `create` callback to add an effect to Fabulous components (cf. Usage.fs) | |
license: MIT |
(* | |
The MIT License | |
SpanUtils.fs - Useful extensions for Span | |
Copyright(c) 2019 cannorin | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
open System | |
open System.Collections.Generic | |
let memoize_rec (f : ('a -> 'b) -> 'a -> 'b) = | |
let m = Dictionary<'a, 'b> () in | |
let rec g x = | |
try | |
m.[x] | |
with | |
| :? KeyNotFoundException -> |
open System | |
open System.IO | |
open System.Text | |
open System.Collections.Generic | |
open System.Linq | |
let base64 = List.concat[['A'..'Z']; ['a'..'z']; ['0'..'9']; ['+'; '/'; '=']] | |
let b2u b1 b2 = | |
let i1 = List.findIndex ((=) b1) base64 in |
// type <T> ... code of T | |
// | |
// <~<t>> -> <t> | |
// run <t> -> t | |
let hungry i = | |
let rec f i = | |
match i with | |
| 0 -> < () > |
#!/bin/bash | |
[ $# -eq 0 ] && | |
{ | |
echo "Usage: pdf2minibook filename" | |
exit 0 | |
} | |
[ -f $1 ] || | |
{ | |
echo "pdf2minibook: $1 not found" |
#!/bin/bash | |
[ $# -eq 0 ] && | |
{ | |
echo "Usage: exehandler filename" | |
exit 0 | |
} | |
[ -f $1 ] || | |
{ | |
echo exehandler: $1 not found |