Skip to content

Instantly share code, notes, and snippets.

{
"title": "EF .Include, why important?",
"visbility": "public"
}
{
"title": "OData or Not",
"visbility": "public"
}
{
"title": "18/07/2013",
"visbility": "public"
}
{
"title": "Agile trip preparation",
"visbility": "public"
}
{
"title": "First commit",
"visbility": "public"
}
Test
====
+ one
+ two
+ three
@baio
baio / gist:5975172
Last active December 19, 2015 15:19
_index.coffee
###
Read comman line parameters
0. node
1. filename (_index)
2. app file name
3. config file name
4. app name
5. nodetime key
###
appFileName = process.argv[2]
@baio
baio / gist:5387303
Created April 15, 2013 10:56
Mongo wrapper
public class MongoWrapper<T> : IDisposable where T : class
{
public MongoWrapper(string Collection)
{
var connectionString = ConfigurationManager.AppSettings["MONGO_URI"];
var hostName = Regex.Replace(connectionString, "^(.*)/(.*)$", "$1");
var dbName = Regex.Replace(connectionString, "^(.*)/(.*)$", "$2");
_server = MongoServer.Create(hostName);
@baio
baio / gist:5387153
Created April 15, 2013 10:20
mongo connect, update
var connectionString = ConfigurationManager.AppSettings["MONGO_URI"];
if (connectionString != null)
{
var hostName = Regex.Replace(connectionString, "^(.*)/(.*)$", "$1");
var dbName = Regex.Replace(connectionString, "^(.*)/(.*)$", "$2");
var server = MongoServer.Create(hostName);
BACKGROUND O
: O
Ischemic O
heart O
disease O
is O
the O
primary O
cause O
of O