Skip to content

Instantly share code, notes, and snippets.

View ctacke's full-sized avatar

Chris Tacke ctacke

View GitHub Profile
@ctacke
ctacke / raspi-dotnet.sh
Last active March 21, 2024 15:30
Installing .NET on Raspberry Pi
#!/bin/bash
add_to_bashrc() {
local string="$1"
if ! grep -q "$string" "$HOME/.bashrc"; then
echo "$string" >> $HOME/.bashrc
fi
}
wget --inet4-only https://dot.net/v1/dotnet-install.sh -O - | bash /dev/stdin --version latest
@ctacke
ctacke / Program.cs
Created April 13, 2022 20:49
Meadow BLE Console Sample (feat. 32-Feet.NET)
using InTheHand.Bluetooth;
using System;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
var discoveryTask = TestDeviceDiscovery();
@ctacke
ctacke / BleService.cs
Created April 13, 2022 20:48
Meadow BLE Server Sample
using Meadow.Gateways.Bluetooth;
using Meadow.Logging;
using Meadow.Units;
using System;
namespace Meadow.Samples
{
public delegate void ClicksChangedHandler(int newValue);
internal class BleService
@ctacke
ctacke / SimpleServer.cs
Last active June 22, 2018 17:07
A simple HTTP server for helping unit and integration testing of REST clients
using System;
using System.Net;
using System.Text;
using System.Threading;
namespace OpenNETCF.Test
{
public sealed class SimpleServer : IDisposable
{
private readonly HttpListener m_listener = new HttpListener();
@ctacke
ctacke / HomeWrapView.xaml
Created August 3, 2016 21:18
Embedding Multiple Xamarin ContentPages into a single XAML file
<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:common="clr-namespace:NavigationExample.Views"
x:Class="NavigationExample.Views.HomeWrapView"
Title="Page Title">
<MasterDetailPage.Master>
<common:MenuView x:Name="Menu" Title="Menu Title" />
</MasterDetailPage.Master>