Skip to content

Instantly share code, notes, and snippets.

View RobertBonham's full-sized avatar

Robert Bonham RobertBonham

  • Robert's Stuff
  • Southern Oregon
View GitHub Profile
@witnessmenow
witnessmenow / sketch.ino
Created March 17, 2019 12:19
AlarmClock code with EZTime library
#include <ESP8266WiFi.h>
#include <TM1637Display.h>
#include <ezTime.h>
// Both can be installed from library manager
char ssid[] = "SSID"; // your network SSID (name)
char password[] = "password"; // your network password
// Module connection pins (Digital Pins)
@sabas1080
sabas1080 / ESP32_HID.ino
Last active November 25, 2024 08:30
Example of HID Keyboard BLE with ESP32
/*
Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@odytrice
odytrice / Ninject.Mvc.cs
Last active December 12, 2022 11:48
A small Library to configure Ninject (A Dependency Injection Library) with an ASP.NET Application.
using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
@ferventcoder
ferventcoder / 0GenericRepository.cs
Created August 16, 2012 17:21
Db First Generic Repository with DbFirst Model First - allows use of stored procedures transparently - it's no coincidence that the IRepository is the same as code first implements
public class EntityFrameworkDatabaseFirstRepository : IRepository
{
private readonly IDatabaseFirstDataContext _dataContext;
/// <summary>
/// Gets the data context.
/// </summary>
protected IDatabaseFirstDataContext DataContext
{
get