Skip to content

Instantly share code, notes, and snippets.

View sibartlett's full-sized avatar

Simon sibartlett

View GitHub Profile
@sibartlett
sibartlett / frigate_0.10_notification.yaml
Last active September 26, 2022 03:24 — forked from hunterjm/frigate_0.10_notification.yaml
Frigate 0.10 Notifications
blueprint:
name: Frigate Notification (0.10.0) (toddrob99)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements
@sibartlett
sibartlett / machine.js
Last active April 11, 2020 12:13
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@sibartlett
sibartlett / package.json
Created November 3, 2016 17:25
yarn error - invalid tar file
{
"name": "_",
"devDependencies": {
"babel-core": "^6.17.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.2.4",
"babel-plugin-react-transform": "^2.0.2",
"babel-plugin-transform-es2015-classes": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
@sibartlett
sibartlett / keybase.md
Created November 27, 2014 20:28
keybase.md

Keybase proof

I hereby claim:

  • I am sibartlett on github.
  • I am sibartlett (https://keybase.io/sibartlett) on keybase.
  • I have a public key whose fingerprint is C45E CD00 58C9 5B47 E180 D134 089B BEA3 47E9 7B5C

To claim this, I am signing this object:

@sibartlett
sibartlett / NtsPolygonTest.cs
Created November 5, 2012 14:22
Lucene spatial test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lucene.Net.Documents;
using Lucene.Net.Spatial.Prefix;
using Lucene.Net.Spatial.Prefix.Tree;
using Lucene.Net.Spatial.Queries;
using Lucene.Net.Support;
using NUnit.Framework;
@sibartlett
sibartlett / with_moc.m
Created November 26, 2011 17:17
MagicalRecord Example
NSArray *results = [Employee findAllInContext:self.managedObjectContext];
@sibartlett
sibartlett / fnh-ForeignKeyConstraintNameConvention.cs
Created March 24, 2011 12:52
Fluent NHibernate - Foreign key constraint name convention
using System.Linq;
using System.Reflection;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
using FluentNHibernate.MappingModel;
using FluentNHibernate.MappingModel.ClassBased;
using FluentNHibernate.MappingModel.Collections;
public class ForeignKeyConstraintNameConvention : IClassConvention, ISubclassConvention, IJoinedSubclassConvention
{
@sibartlett
sibartlett / aspnetmvc-action-di-ioc.cs
Created February 15, 2011 08:41
Using a custom modelbinder attribute to inject dependencies via IOC into ASP.NET MVC actions.
public class ExampleController : Controller
{
public ActionResult Register(UserRegistrationDTO dto, [Inject] ISession session, [Inject("THIS-IS-A-KEY")] UserCreateCommand command)
{
...
}
}
public class IocMvcModelBinder : IModelBinder
{