Skip to content

Instantly share code, notes, and snippets.

View DevJohnC's full-sized avatar

John Carruthers DevJohnC

View GitHub Profile
@DevJohnC
DevJohnC / MainActivity.cs
Created January 31, 2014 07:41
Video browsing and playback android app
using System;
using Android.App;
using Android.Content;
using Android.Views;
using Android.Widget;
using Android.OS;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
@DevJohnC
DevJohnC / InstallAppService.cs
Created January 28, 2014 06:20
Admin script to install an app into AdjutantOS.
//
// Author: John Carruthers ([email protected])
//
// Copyright (C) 2013 John Carruthers
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
@DevJohnC
DevJohnC / Program.cs
Created January 17, 2014 07:04
Udp connection testing
//
// Author: John Carruthers ([email protected])
//
// Copyright (C) 2013 John Carruthers
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
//
// Author: John Carruthers ([email protected])
//
// Copyright (C) 2013 John Carruthers
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
@DevJohnC
DevJohnC / Program.cs
Created December 23, 2013 22:28
Basic connection testing for reliable udp
//
// Author: John Carruthers ([email protected])
//
// Copyright (C) 2013 John Carruthers
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
@DevJohnC
DevJohnC / AuralTest.cs
Created December 8, 2013 21:00
Aural example application
using System;
using FragLabs.Aural;
using FragLabs.Aural.Encoding;
using FragLabs.Aural.Encoding.Opus;
using FragLabs.Aural.IO;
using FragLabs.Aural.Processing.Filters;
namespace AuralTest
{
class Program
//
// Author: John Carruthers ([email protected])
//
// Copyright (C) 2013 John Carruthers
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
@DevJohnC
DevJohnC / OmxNetworkStream.cs
Created December 3, 2013 04:28
Prototype code for streaming video to libomxplayer
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@DevJohnC
DevJohnC / MainActivity.cs
Created November 23, 2013 08:17
AdjutantOS addon for Android, this turns my office equipment (lights, computers) on and off at the press of a button.
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using FragLabs.AdjutantOS.API;
using FragLabs.AdjutantOS.API.Addons;
//
// Author: John Carruthers ([email protected])
//
// Copyright (C) 2013 John Carruthers
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to