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
license: mit |
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
# Script to test stemming for ElasticSearch. Working now!! | |
# Reference: http://stackoverflow.com/questions/4981001/why-elasticsearch-is-not-finding-my-term | |
require 'rubygems' | |
require 'net/http' | |
require 'yaml' | |
require 'json' | |
# kill the index | |
delete = Net::HTTP::Delete.new("/willindex") |
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
<defs> | |
<marker id="lineEnd" | |
viewBox="0 0 10 10" | |
refX="1" refY="5" | |
markerWidth="6" | |
markerHeight="6" | |
orient="auto"> | |
<path d="M 0 0 L 10 5 L 0 10 z"/> | |
</marker> | |
</defs> |
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
forest = ["pine", "birch", "spruce"] | |
for tree in forest | |
console.log tree | |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"> | |
<dimension ref="A1:A4"/> | |
<sheetViews> | |
<sheetView tabSelected="1" workbookViewId="0"> | |
<selection activeCell="A5" sqref="A5"/> | |
</sheetView> | |
</sheetViews> | |
<sheetFormatPr baseColWidth="10" defaultRowHeight="15" x14ac:dyDescent="0"/> | |
<sheetData> |
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
[Fact] | |
public void timeout() | |
{ | |
var observable = Observable.Never<decimal>(); | |
int timesRun = 0; | |
int timeouts = 0; | |
observable.Subscribe(x => timesRun++); | |
var testScheduler = new TestScheduler(); | |
observable.Timeout(TimeSpan.FromSeconds(1), testScheduler).Subscribe(x => timesRun++, |
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
public class TokenReplacementCheckSheetProcessor : BaseChecksheetDecorator, IChecksheetDecorator | |
{ | |
//A list of all the token resolvers known to the container | |
public IEnumerable<ITokenResolver> Resolvers {get;set;} | |
//A cache of the tokens to replace in a single check sheet | |
//It is time consuming to search a word document for the | |
//tokens so we try to do it only once for each sort of checkseet | |
public ICheckSheetTokenCache CheckSheetTokenCache {get;set;} | |