Skip to content

Instantly share code, notes, and snippets.

View BrainCrumbz's full-sized avatar

BrainCrumbz BrainCrumbz

View GitHub Profile
@BrainCrumbz
BrainCrumbz / JoinWavFilesIntoWma.cs
Last active August 29, 2015 14:16 — forked from BrainCrumbz/Exception.log
Join WAV files into a WMA file with NAudio - COMException fixed
// ...
/* Mixing WaveFileReader with MediaFoundationEncoder causes an exception.
* Stick with MediaFoundationReader when working with MediaFoundation namespace.
List<WaveFileReader> waveFileReaders = BuildTheReaderListFromPathNames();
*/
List<MediaFoundationReader> waveFileReaders = BuildTheReaderListFromPathNames();
IWaveProvider joinedWaveProvider = buildProvider(waveFileReaders);
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<table class="table-fixed-header">
<thead class="header">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>