Skip to content

Instantly share code, notes, and snippets.

@ronnieoverby
ronnieoverby / JaroWinklerDistance.cs
Last active June 14, 2021 16:16
Some modifications to the algorithm found at http://stackoverflow.com/a/19165108/64334
public static class JaroWinklerDistance
{
/* The Winkler modification will not be applied unless the
* percent match was at or above the mWeightThreshold percent
* without the modification.
* Winkler's paper used a default value of 0.7
*/
private const double WeightThreshold = 0.7;
/* Size of the prefix to be concidered by the Winkler modification.
@khellang
khellang / ScrollViewer.xaml
Created June 4, 2012 13:22
ScrollViewerMaxSizeBehavior
<ScrollViewer Style="{StaticResource AppHost_ScrollViewer}">
<Interactivity:Interaction.Behaviors>
<custom:ScrollViewerMaxSizeBehavior MinContentWidth="600"
MinContentHeight="500"/>
</Interactivity:Interaction.Behaviors>
<!-- content -->
</ScrollViewer>