Skip to content

Instantly share code, notes, and snippets.

View davericher's full-sized avatar

Dave Richer davericher

View GitHub Profile
@pauly7300
pauly7300 / fade_w_button.yaml
Last active March 27, 2019 21:54
fadeup/down on button press
# Define Global variable
globals:
- id: my_global
type: bool
restore_value: no
initial_value: 'true'
# Define momentary button for use with the on_press
binary_sensor:
- platform: gpio
@buzztiaan
buzztiaan / half_font.h
Created April 12, 2018 18:10
a 4x4 pixels font
// 4x4 pixel font, horrible, unreadable :)
const int CHAR_WIDTH = 4;
const int CHAR_HEIGHT = 4;
byte halffont[95][4] = { {0,0,0,0}, //space
{0,0,0,0}, // !
{0,0,0,0}, // "
{0,0,0,0}, // #
{0,0,0,0}, // $
@jsturgis
jsturgis / dropbox.service.md
Last active June 24, 2022 09:30
ubuntu 15.04 dropbox systemd

Install Dropbox and python script, symlink python script to /usr/local/bin/dropbox and add to your path.

/etc/systemd/system/dropbox.service contents

[Unit]
Description=Dropbox Service
After=network.target

[Service]
ExecStart=/bin/sh -c '/usr/local/bin/dropbox start'
@barryvdh
barryvdh / _ide_helper.php
Last active May 6, 2024 07:45
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");