Skip to content

Instantly share code, notes, and snippets.


oec2003 oec2003

View GitHub Profile
View MediaAPIController.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Net.Mime;
View MarkdownCss
/* =Markdown支持
----------------------------------------------- */
h3 {
font-size: 26px;
code, kbd, pre, samp {
font-family: "Consolas",monospace;
oec2003 / GridFSHandle
Created May 19, 2015 15:50
View GridFSHandle
public class GridFSHandle : IDFSHandle
private readonly MongoDatabase _db;
private readonly MongoServer _server;
private readonly string _dbName;
private readonly MongoGridFS _gridFs;
private readonly string _connectionString;
public GridFSHandle()
oec2003 / 0_reuse_code.js
Created June 13, 2014 15:47
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View placeholder
/*! v2.0.6 by @mathias */;
(function (g, i, d) {
var a = 'placeholder' in i.createElement('input'),
e = 'placeholder' in i.createElement('textarea'),
j = d.fn,
c = d.valHooks,
l, k;
if (a && e) {
k = j.placeholder = function () {
return this
oec2003 / gist:3884309
Created October 13, 2012 11:51
View gist:3884309
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
using System.IO;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace FW.CommonFunction