Skip to content

Instantly share code, notes, and snippets.

View mesprague's full-sized avatar

Matthew Sprague mesprague

  • Denver, Colorado
View GitHub Profile
@mesprague
mesprague / nvram2json
Created August 31, 2014 02:01
One liner for the asus RT-N66U router to display nvram contents as json
nvram2json() { echo $(nvram show 2>/dev/null | egrep -v '^$' | sort | sed 's/^\(.*\)=\(.*\)/"\1":"\2"/;1 s/^/{\n/;$ !s/$/,/;$a}'); }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PermLib
{
/// <summary>
/// A Factoradic representation of an integer in the range 0 - UInt64.MaxValue
/// </summary>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenBabel;
namespace OBDotNetExamples
{
public static class OBDotNetExtensions
{
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using OpenBabel;
namespace OBDotNetExamples
{
class Program1
using System;
using OpenBabel;
namespace OBDotNetExamples
{
class Program1
{
static void Main(string[] args)
{
OBConversion obc = new OBConversion();
using System.Collections.Generic;
using System.IO;
using System.Linq;
using OpenBabel;
namespace OBDotNetExamples
{
public static class OBReader
{
private static OBConversion obc;
@mesprague
mesprague / OBMol.cs
Created December 15, 2008 08:42
The swig generated wrapper for OpenBabel::OBMol
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.35
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace OpenBabel {
using System;
using OpenBabel;
namespace OBDotNetExamples
{
class Program1
{
static void Main(string[] args)
{
namespace ChemSharp.IO
{
public static class InChI
{
private static OpenBabel.OBConversion converter;
static InChI()
{
converter = new OpenBabel.OBConversion();
converter.SetInAndOutFormats("inchi", "inchi");