View SimpleRectangleCipher.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace GM.Security.Cryptography | |
{ | |
public class SimpleRectangleCipher | |
{ | |
private const string ALPHABET = "ABCDEFGHIJKLMNOPRSTUVZ"; | |
private const char SPACE_REPLACEMENT = 'Q'; |
View QuickSort.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <iostream> | |
#include <cstdlib> | |
#include <time.h> | |
#include <math.h> | |
using namespace std; | |
int divide(int* a, int bottom, int top); | |
void switchAt(int* a, int bottom, int top); |
View BinarySearchTree.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <iostream> | |
#include <ctime> | |
using namespace std; | |
struct element | |
{ | |
element* next; | |
}; |
View DoublyLinkedList.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
// Represents an element of the doubly linked list. | |
struct element | |
{ | |
// The key of the element. |
View StackAndQueue.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stack is LIFO (Last In First Out) | |
// Circular Queue is FIFO (First In First Out) | |
#include <iostream> | |
#include <sstream> | |
using namespace std; | |
#define LENGTH_MAX 10 |
View KneserNey.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace GM.NLP.Smoothing | |
{ | |
/// <summary> | |
/// Implementation of Kneser-Ney language model. | |
/// |
View Equalizer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using System.Linq; | |
using GalaSoft.MvvmLight; | |
using NAudio.Dsp; | |
using NAudio.Wave; | |
namespace GM.SP.Audio | |
{ | |
public class EqualizerBand : ObservableObject |
View TelephoneKeypadDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
namespace GM.SP | |
{ | |
/// <summary> | |
/// https://en.wikipedia.org/wiki/Telephone_keypad | |
/// </summary> | |
public class TelephoneKeypadDecoder : IDisposable | |
{ |
View DTMFDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NAudio.Wave; | |
using Frequency = GM.SP.Audio.SignalAnalysis.Frequency; | |
namespace GM.SP.Audio | |
{ | |
/// <summary> | |
/// https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling |
View SignalAnalysis.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using NAudio.Dsp; | |
using NAudio.Wave; | |
using NAudio.Wave.SampleProviders; | |
namespace GM.SP.Audio | |
{ | |
public static class SignalAnalysis | |
{ | |
public class Frequency |
NewerOlder