Skip to content

Instantly share code, notes, and snippets.

View daviddykeuk's full-sized avatar
👨‍💻

David Dyke daviddykeuk

👨‍💻
View GitHub Profile
blueprint:
name: Start music on input button
description: When an input button is pressed, start the associated music on the selected media player
domain: automation
input:
input_button_entity_id:
name: Input Button
description: The Input Button Entity ID
selector:
entity:
blueprint:
name: Start music on Sonos when tag is scanned
description: When a tag is scanned, start the associated music on the selected media player
domain: automation
input:
tag_id:
name: Tag ID
description: The tag ID
song_url:
name: Song url
@daviddykeuk
daviddykeuk / javascript.snippets
Created September 16, 2020 12:39
Ultisnip javascript snippets
snippet c "A simple react component" b
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import { $2 } from '@material-ui/core';
const styles = theme => ({
root: {
padding: theme.spacing(1)
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @plugin 'xamut/tmux-weather'
set -g @continuum-boot-options 'iterm'
set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
# Generated by Powerlevel10k configuration wizard on 2020-09-14 at 14:27 BST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 302.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# angled separators, sharp heads, flat tails, 2 lines, disconnected, no frame, sparse,
# many icons, concise, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
"graphql",
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
"plug 'Xuyuanp/nerdtree-git-plugin'
"Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'

Keybase proof

I hereby claim:

  • I am daviddykeuk on github.
  • I am daviddykeuk (https://keybase.io/daviddykeuk) on keybase.
  • I have a public key ASBClIW5DUwa6xZufupiFxW9AkDgSqEh4YE6lpmeuLrIyAo

To claim this, I am signing this object: