(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
// Mimic type classes with additional param | |
type 'a Num = { | |
zero: 'a | |
add: 'a -> 'a -> 'a | |
mult: 'a -> 'a -> 'a | |
fromInteger: int -> 'a } | |
let intNum = { | |
zero = 0 |
static class EnumerableExtensions | |
{ | |
public static IEnumerable<T> Distinct<T, TProperty>( | |
this IEnumerable<T> source, | |
Expression<Func<T, TProperty>> propertyExpression) | |
{ | |
return source.Distinct( | |
new PropertyExpressionComparer<T, TProperty>(propertyExpression)); | |
} |
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |
(* | |
This script analyzes the dependencies between top level types in a .NET Assembly. | |
It is then used to compare the dependency relationships in some F# projects with those in some C# projects. | |
Note that no attempt has been made to optimize the code yet! | |
REQUIRES: | |
* Mono.Cecil for code analysis | |
From http://www.mono-project.com/Cecil#Download |
<!-- SEO rules (from: http://www.seomoz.org/blog/what-every-seo-should-know-about-iis#chaining) --> | |
<!-- SEO | Section 1 | Whitelist --> | |
<rule name="Whitelist - Resources" stopProcessing="true"> | |
<match url="^(?:css/|scripts/|images/|install/|config/|umbraco/|umbraco_client/|base/|webresource\.axd|scriptresource\.axd|__browserLink|[^/]*/arterySignalR/.*)" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
<action type="None" /> | |
</rule> | |
<!-- SEO | Section 2 | Rewrites (chaining) --> | |
<rule name="SEO - Remove default.aspx" stopProcessing="false"> | |
<match url="(.*?)/?default\.aspx$" /> |
namespace Newtonsoft.Json.Converters | |
open Microsoft.FSharp.Reflection | |
open Newtonsoft.Json | |
open System | |
type IdiomaticDuConverter() = | |
inherit JsonConverter() | |
[<Literal>] |
open System.Collections.Generic | |
open Microsoft.FSharp.Collections | |
[<RequireQualifiedAccess>] | |
module Folds = | |
// These are the fast implementations we actually want to use |
Result of running these benchmarks on Chrome 45.0.2454.101
These numbers seem to be pretty consistent on Blink-based browsers (Chrome and Opera) but are more like 20% to 50% improvements on FireFox, Safari, and IE. I am not sure how to explain that, so take these numbers more as an indicator of “Elm is generating faster code across the board” as opposed to “Elm is 10x faster!”