Skip to content

Instantly share code, notes, and snippets.

View craigjmidwinter's full-sized avatar

Craig J. Midwinter craigjmidwinter

View GitHub Profile
@craigjmidwinter
craigjmidwinter / .vimrc
Last active August 15, 2019 19:45
Actually, this is my ~/.config/nvim/init.vim which gets sourced in my .vimrc
if empty(glob('~/.config/nvim/autoload/pathogen.vim'))
silent !curl -LSso ~/.config/nvim/autoload/pathogen.vim --create-dirs
\ https://tpo.pe/pathogen.vim
endif
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
"""
Support for Dominos Pizza ordering.
The Dominos Pizza component ceates a service which can be invoked to order
from their menu
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/dominos/.
"""
import logging
@craigjmidwinter
craigjmidwinter / google_fit.py
Last active June 14, 2020 17:55
googlefit steps component for home assistant
import json
import logging
import os
import time
from datetime import datetime, timedelta
import httplib2
import requests
import voluptuous as vol
from apiclient.discovery import build
"""
Support for Dominos Pizza ordering.
The Dominos Pizza component ceates a service which can be invoked to order
from their menu
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/dominos/.
"""
import asyncio
import json
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from pizzapi import Customer, Address, Order
from homeassistant.helpers.entity import Entity
import unicodedata
_LOGGER = logging.getLogger(__name__)