Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
danielwrobert / settings.json
Created September 15, 2022 14:18
VS Code Settings - WordPress Excludes
{
"files.exclude": {
"**/wp-admin": true,
"**/wp-includes": true,
"**/upgrade": true,
"**/uploads": true,
"**/wp-content/index.php": true,
"**/wp-content/plugins/akismet": true,
"**/wp-content/plugins/debug-bar": true,
"**/wp-content/plugins/debug-bar-console": true,
@danielwrobert
danielwrobert / package.json
Last active April 16, 2021 01:39
@wordpress/env Script Settings (package.json)
{
"name": "project-name",
"version": "1.0.0",
"description": "",
"author": "",
"license": "GPL-2.0-or-later",
"main": "index.js",
"scripts": {
"env": "WP_ENV_HOME=\"wp-env\" wp-env",
"env:logs": "npm run env logs",
@danielwrobert
danielwrobert / thejoker.zsh-theme
Last active August 24, 2022 17:23
My Oh My Zsh prompt theme.
# Name in folder (github)
# Conditionally indicate if in github repo. Time in 24-hour format is on right.
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
function prompt_char {
echo -n "%{$fg_bold[red]%}➜%{$reset_color%} "
}
PROMPT='
@danielwrobert
danielwrobert / .prettierrc
Last active June 9, 2020 14:58
My Prettier configuration files
{
"useTabs": true,
"tabWidth": 4,
"singleQuote": true,
"printWidth": 100
}
@danielwrobert
danielwrobert / .hyper.js
Last active May 6, 2018 20:49
My Hyper Terminal config - https://hyper.is/
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
updateChannel: 'canary',
// default font size in pixels for all tabs
fontSize: 14,
windowSize: [1080, 720],
@danielwrobert
danielwrobert / .prettierignore
Created April 19, 2018 14:45
My ignore file for Prettier - https://prettier.io/
*.json
README.md
@danielwrobert
danielwrobert / extensions.txt
Last active September 15, 2022 19:29
My user settings and extensions for VS Code.
code --install-extension aaron-bond.better-comments
code --install-extension AndrsDC.base16-themes
code --install-extension andys8.jest-snippets
code --install-extension anteprimorac.html-end-tag-labels
code --install-extension bmewburn.vscode-intelephense-client
code --install-extension bradgashler.htmltagwrap
code --install-extension bradlc.vscode-tailwindcss
code --install-extension burkeholland.simple-react-snippets
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
@danielwrobert
danielwrobert / .eslintrc
Last active August 19, 2019 17:26
My ESLint configurations
{
"root": true,
"extends": [ "react-app", "plugin:jsx-a11y/recommended" ],
"plugins": [ "jsx-a11y" ],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true,
@danielwrobert
danielwrobert / style-blog-cobaltish.css
Last active December 22, 2017 15:15
Alternative color pallets (style overrides) for Independent Publisher 2 theme.
.widget_recent_comments a, .widget_recent_entries a, body, button, input, select, textarea {
color: #F9FFEE;
}
.entry-author .author-title, .entry-title, .entry-title a, .entry-title a:visited, .site-posted-on strong, .site-title, .site-title a, .site-title a:visited, .entry-title a:hover, .site-title a:hover, h1, h2, h3, h4, h5, h6, .page-header:not(.page-header-light) h1, .comment .comment-meta .comment-author .fn {
color: #EFBB35;
}
.site-title a {
color: #EFBB35 !important;
}
.site-description, .social-navigation li a, .site-header .menu-toggle {
@danielwrobert
danielwrobert / .gitattributes-line-endings
Last active March 7, 2017 15:00
Git attributes to deal with differences in line endings
## Deal with differences in line endings:
## See https://help.github.com/articles/dealing-with-line-endings/
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text