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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
body { | |
width: 960px; | |
padding-top: 40px; | |
margin: auto; |
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
FROM ubuntu:12.04 | |
# For FDB 2.0.1 | |
RUN apt-get update -qq | |
RUN apt-get install -y wget -qq | |
RUN cd /tmp ; wget https://foundationdb.com/downloads/I_accept_the_FoundationDB_Community_License_Agreement/2.0.1/foundationdb-clients_2.0.1-1_amd64.deb --no-check-certificate; \ | |
wget https://foundationdb.com/downloads/I_accept_the_FoundationDB_Community_License_Agreement/2.0.1/foundationdb-server_2.0.1-1_amd64.deb --no-check-certificate | |
#Hack to avoid install problem - we break FDB server on purpose (to prevent if from starting) | |
RUN mkdir /etc/foundationdb && touch /etc/foundationdb/fdb.cluster |
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
m n p v|mod v n==0=p|True=[] | |
p n|null w=show n|True=w where w=(m 3"Fizz"n)++(m 5"Buzz"n) | |
f=map p[1..100] |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
var queue chan string | |
var joblist []string |
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
#region Copyright (c) 2006-2013 LOKAD SAS. All rights reserved | |
// This document is shared under BSD license | |
#endregion | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; |
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 System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Threading; | |
using Microsoft.WindowsAzure; | |
using Microsoft.WindowsAzure.StorageClient; | |
namespace Lokad | |
{ | |
// Simple azure log that persists sliding log buffer in Azure blobs. |
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
Development position in Moscow. Contact @abdullin. | |
Requirements: | |
* Higher engineering education; | |
* English language proficiency (reading technical documents, correspondence, speaking); | |
* Excellent knowledge of PHP/MySQL/Javascript (JQuery); | |
* Good knowledge of HTML/CSS; | |
* Basic knowledge of the Linux operation and administering; |
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 sealed class NonSerializingMemoryDocumentStore : IDocumentStore | |
{ | |
readonly ConcurrentDictionary<string,IStoreInfo> _store = new ConcurrentDictionary<string, IStoreInfo>(); | |
readonly IDocumentStrategy _strategy; | |
public interface IStoreInfo | |
{ | |
IEnumerable<DocumentRecord> Enumerate(); | |
} |
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
void Main() | |
{ | |
dynamic processor = null; | |
bool stopRequested; | |
while(!stopRequested) | |
{ |
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 FetchEventStoreProcessor : ICommandProcessor | |
{ | |
public string Key { get { return "FETCH"; } } | |
public string Usage { get { return "FETCH <remoteConfig> [<folderNameInLokadData>]"; } } | |
public bool Execute(CommandProcessorContext context, CancellationToken token, string[] args) | |
{ | |
if (args == null || args.Length == 0) | |
{ | |
context.Log.Error("No remoteConfig provided."); |