This file contains hidden or 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 System.Threading.Tasks; | |
using Weblog.Models; | |
using Nest; | |
using Polly; | |
namespace Weblog.Services | |
{ | |
public class PostIndexer: IPostIndexer | |
{ |
This file contains hidden or 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
package nl.fizzylogic.restservice | |
import akka.actor.{Actor, ActorRef, Props, ReceiveTimeout} | |
import org.json4s.DefaultFormats | |
import spray.httpx.Json4sSupport | |
import spray.http.{StatusCode, StatusCodes} | |
import spray.routing.{HttpService, RequestContext} | |
import scala.concurrent.duration._ | |
import scala.reflect.ClassTag |
This file contains hidden or 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
export PUBLIC_IP=$(ip addr show eth0 | grep "inet" | awk 'NR == 1 { print $2 }' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b") |
This file contains hidden or 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
/// <summary> | |
/// Allows for drawing random pixels into a writeable bitmap | |
/// </summary> | |
public class PixelBuffer | |
{ | |
private WriteableBitmap _source; | |
private byte[] _pixels; | |
/// <summary> | |
/// Initializes a new instance of <see cref="PixelBuffer"/> |
NewerOlder