Skip to content

Instantly share code, notes, and snippets.

View bojanrajkovic's full-sized avatar

Bojan Rajkovic bojanrajkovic

View GitHub Profile
@bojanrajkovic
bojanrajkovic / sounds.workbook
Created February 20, 2018 03:41
A workbook on generating sound
uti platforms
com.xamarin.workbook
Console

Generating sounds in C#

Sound is all around us—very few of us ever spend time in a totally quiet room. Similarly few of us ever consider what sounds are made up of. In this workbook, we’ll explore generating some simple tones, including a few different kinds of sound waves: square waves, sine waves, and triangle waves.

@bojanrajkovic
bojanrajkovic / chickencodec.cs
Created February 20, 2018 03:25
Chicken codec
using System;
using System.Text;
namespace CodeRinseRepeat.Chicken
{
public class ChickenCodec
{
static readonly Char [] FeedStock = { 'C', 'H', 'I', 'C', 'K', 'E', 'N', '.' };
public static Lazy<byte []> ChickenFeed = new Lazy<byte []> (SpreadFeed);
@bojanrajkovic
bojanrajkovic / cpbitmap.cs
Created February 20, 2018 03:22
CPBitmap Reader
using System;
using System.IO;
using System.Threading.Tasks;
namespace CodeRinseRepeat.CPBitmapReader
{
public sealed class CPBitmap
{
public int Width { get; set; }
public int Height { get; set; }