ElasticSearch is a distributed search engine based on Lucene.
- Data is stored as Json objects
- Data is automatically indexed
- Interact via REST Api
using System; | |
/// <summary> | |
/// The context, which consumes a strategy. | |
/// </summary> | |
public class Context | |
{ | |
protected IStrategy Strategy { get; set; } | |
public Context(IStrategy strategy) |
using System; | |
/// <summary> | |
/// Generic Chain of Responsibility | |
/// <para>Avoid coupling the sender of a request to its | |
/// receiver by giving more than one object a chance to | |
/// handle the request. Chain the receiving objects and | |
/// pass the request along the chain until an object | |
/// handles it.</para> | |
/// </summary> |
using System; | |
public class ConcreteTemplateA : Template | |
{ | |
protected override void DoThis() | |
{ | |
// Do this | |
} | |
protected override void DoThat() |
using System; | |
/// <summary> | |
/// An example prototype interface. | |
/// <para>The Prototype pattern is a creational | |
/// pattern, whose purpose is to specify the kinds | |
/// of objects to create using a prototypical | |
/// instance, and create new objects by copying | |
/// this prototype.</para> | |
/// </summary> |
using System; | |
using System.Diagnostics; | |
using System.Web; | |
public class ResponseTimeHttpModule : IHttpModule | |
{ | |
private static readonly String XResponseTimeHeaderName = "X-ResponseTime"; | |
public void Init(HttpApplication context) | |
{ |
--- | |
layout: post | |
title: Hello World | |
permalink: | |
- posts/hello-world | |
date: 2012-06-19 16:46:51 -04:00 | |
tags: | |
- example | |
- markdown | |
- post |
@echo off | |
set year=%date:~10,4% | |
set month=%date:~4,2% | |
set day=%date:~7,2% | |
set hour=%time:~0,2% | |
set minute=%time:~3,2% | |
set second=%time:~6,2% | |
set millisecond=%time:~9,2% | |
echo %year% %month% %day% %hour% %minute% %second% %millisecond% |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
echo ---------------------------------------- | |
echo Updating boot script... | |
echo ---------------------------------------- | |
sudo git -C /usr/bin/rbwestmoreland/ pull | |
sudo sh /usr/bin/rbwestmoreland/start.sh |