map:
function (doc) {
if (doc.type == 'game' && doc.state == 'closed') {
emit(['winner', doc.winner, doc.loser], 1);
}
}
reduce:
map:
function (doc) {
if (doc.type == 'game' && doc.state == 'closed') {
emit(['winner', doc.winner, doc.loser], 1);
}
}
reduce:
##Good guide to getting through aspnet Web Applications errors http://andreizubov.blogspot.co.uk/2015/04/getting-started-with-net-on-os-x-and.html
Error: IOException: kqueue() FileSystemWatcher
##Fixing the feed issues aspnet/dnvm#235 (comment)
{ | |
"name": "Demo", | |
"version": "0.0.0", | |
"description": "description", | |
"main": "app.js", | |
"directories": { | |
"test": "test" | |
}, | |
"dependencies": { | |
}, |
In 'git bash'
mkdir behave && cd behave
git init
git pull https://github.com/jakiestfu/Behave.js.git master
Copy behave.js, into your local project.
An alternative to doing C# List Delegates (https://gist.github.com/4654896) is to use a Predicate / Lambda Expression...
private List<KeyValueBool<TKey, TValue>> _list;
public Boolean Exists (TKey ID) {
return _list.Exists (item => EqualityComparer<TKey>.Default.Equals (item.Key, ID));
}
public TValue GetValue (TKey ID) {
ISNUMERIC(zipcode + '.0e0') --integer | |
ISNUMERIC(zipcode + 'e0') --decimal |
-- DATE ONLY ELEMENT
SELECT DATEADD(dd, 0,DATEDIFF(dd, 0, GETDATE()))
-- DATE TO NEAREST MINUTE
SELECT DATEADD(mi, DATEDIFF(mi, 0, GETDATE()),0)
-- CONVERT TO TIME as Varchar
SELECT CONVERT(VARCHAR(5), GETDATE(), 108)