Skip to content

Instantly share code, notes, and snippets.

View coman3's full-sized avatar

Lachlan van der Velden coman3

  • Lachlan van der Velden
  • Nunawading
View GitHub Profile
@coman3
coman3 / heater_isolator.py
Last active November 16, 2023 07:09
Klipper module that turns on relays that isolate AC heating elements when heat is requested.
# Heater/sensor verification code
#
# Copyright (C) 2023 Lachlan van der Velden <lachlan@velden.au>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import logging
PIN_MIN_TIME = 0.100
RESEND_HOST_TIME = 0.300 + PIN_MIN_TIME
MAX_SCHEDULE_TIME = 5.0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link href="styles.css" rel="stylesheet">
</head>
<body>
import 'package:flutter/material.dart';
@immutable
class ClipShadowPath extends StatelessWidget {
final Shadow shadow;
final CustomClipper<Path> clipper;
final Widget child;
ClipShadowPath({
@required this.shadow,
@coman3
coman3 / AppScaffold.dart
Created January 27, 2019 07:41
DropShadow on ClipRect
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class AppScaffold extends StatefulWidget {
final double offsetSize;
const AppScaffold({
@required this.offsetSize,
});
@coman3
coman3 / Azure.DynDNS.cs
Created December 2, 2017 12:48
Update Azure DNS recordset with servers current WAN IP.
using CommandLine;
using CommandLine.Text;
using Microsoft.Azure.Management.Dns.Fluent;
using Microsoft.Azure.Management.Dns.Fluent.Models;
using Microsoft.Azure.Management.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System;
using EloBuddy;
using EloBuddy.SDK;
using EloBuddy.SDK.Menu.Values;
using EloBuddy.SDK.Rendering;
using SharpDX;
using SharpDX.Direct3D9;
using Color = System.Drawing.Color;
using Line = EloBuddy.SDK.Rendering.Line;