Skip to content

Instantly share code, notes, and snippets.

View hughbiquitous's full-sized avatar

Hugh Williams hughbiquitous

  • Atlanta, GA, USA
View GitHub Profile
@hughbiquitous
hughbiquitous / BsonExtensions.cs
Created April 2, 2018 14:04
BsonDocument.Parse does not interpret ISO8601 date/time strings as ISODate values; these post-processing methods tidy that up after the fact.
using System;
using System.Globalization;
using MongoDB.Bson;
namespace CSharp2233
{
public static class BsonExtensions
{
private static readonly string[] _formats =
{
@hughbiquitous
hughbiquitous / .gitignore
Created October 24, 2016 17:20
.gitignore for Java/IntelliJ/gradle
# From https://github.com/github/gitignore/blob/master/Gradle.gitignore
.gradle
/build/
# Ignore Gradle GUI config
gradle-app.setting
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar