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
-- Based on code here: http://www.sqlservercentral.com/articles/Fuzzy+Match/65702/ | |
-- Modified to be used in SQL Server Database Projects or run on its own, and fixed similarity vs distance confusion | |
CREATE FUNCTION [dbo].JaroWinklerGetCommonCharacters(@firstWord VARCHAR(MAX), @secondWord VARCHAR(MAX), @matchWindow INT) | |
RETURNS VARCHAR(MAX) AS | |
BEGIN | |
DECLARE @CommonChars VARCHAR(MAX) | |
DECLARE @copy VARCHAR(MAX) | |
DECLARE @char CHAR(1) | |
DECLARE @foundIT BIT |
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 opennlp.tools.sentdetect; | |
namespace Bug | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
// get en-sent.bin from OpenNLP |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0</TargetFrameworks> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
<LangVersion>latest</LangVersion> | |
</PropertyGroup> |
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
<?php | |
if (file_exists(__DIR__ . '/' . $_SERVER['REQUEST_URI'])) { | |
return false; // serve the requested resource as-is. | |
} else { | |
// this is the important part! | |
$_SERVER['SCRIPT_NAME'] = '/index.php'; | |
include_once (__DIR__ . '/index.php'); | |
} |
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
@echo off | |
start "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe" %1 |
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
/// <reference path="../types/webpack-hot-middleware.ts" /> | |
import { Message } from "webpack-hot-middleware/client"; | |
import * as Toastr from "toastr"; | |
declare global { | |
interface MessageEventHandler { | |
(event: MessageEvent): void; | |
} |
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
/* | |
Copyright (C) 2012 James Coliz, Jr. <maniacbug@ymail.com> | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License | |
version 2 as published by the Free Software Foundation. | |
Update 2014 - TMRh20 | |
*/ | |
/** | |
* Simplest possible example of using RF24Network |
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
# Dark 256 color solarized theme for the color GNU ls utility. | |
# Used and tested with dircolors (GNU coreutils) 8.5 | |
# | |
# @author {@link http://sebastian.tramp.name Sebastian Tramp} | |
# @license http://sam.zoy.org/wtfpl/ Do What The Fuck You Want To Public License (WTFPL) | |
# | |
# More Information at | |
# https://github.com/seebi/dircolors-solarized |
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
CREATE VIEW [dbo].[GetNewId] | |
AS SELECT NEWID() AS [NewId] |
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
Porting Lucene 4.3.1 code to Lucene.net Guide | |
Note that not all projects build currently in the Lucene.net solution. You can build individual projects as you go. | |
1. Fork a repo that contains the lucene_4_3_0 or branch_4x branch. Since the Apache repo is currently out of sync, you can fork mine: https://github.com/paulirwin/lucene.net.git -- or you can clone the official apache git repo in step 2. | |
2. Clone your repo locally: git clone [https url] | |
3. Switch to the correct branch. If forked from my repo, use lucene_4_3_0: cd lucene.net; git checkout lucene_4_3_0 |
NewerOlder