Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
danielwrobert / Animated-Eyeballs.markdown
Created December 15, 2013 02:11
A Pen by Daniel W. Robert.
@danielwrobert
danielwrobert / gulpfile.js
Last active January 20, 2017 09:34
My gulpfile.js, configured as a great starting point for most of the projects I've set up lately.
// Include Gulp
var gulp = require( 'gulp' );
// Include Plugins
var sass = require( 'gulp-ruby-sass' ),
autoprefixer = require( 'gulp-autoprefixer' ),
minifycss = require( 'gulp-minify-css' ),
imagemin = require( 'gulp-imagemin' ),
jshint = require( 'gulp-jshint' ),
concat = require( 'gulp-concat' ),
@danielwrobert
danielwrobert / Preferences.sublime-settings
Last active August 29, 2015 13:56
My current Sublime Text settings. Using Material Theme (https://github.com/equinusocio/material-theme) with Solarized Dark color scheme.
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Solarized (Dark) (SL).tmTheme",
// "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"draw_white_space": "all",
"fade_fold_buttons": false,
"folder_exclude_patterns":
[
".svn",
".git",
@danielwrobert
danielwrobert / .editorconfig-alt
Last active April 19, 2018 14:40
My personal preferences for my EditorConfig file. I save these contents to a .editorconfig file in my project's root directory. If you're not familiar with EditorConfig, you should check it out, it's pretty awesome - http://editorconfig.org/
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@danielwrobert
danielwrobert / config.rb
Last active August 29, 2015 13:57
My config.rb preferences. Adjusted on a per project bases, this is just a good starting point for how I typically configure my Sass/Compass projects.
# Require any additional compass plugins here:
# example:
# require "susy"
project_type = :stand_alone
# Set this to the root of your project when deployed:
http_path = "/"
sass_dir = "scss"
css_dir = "css"
@danielwrobert
danielwrobert / csscomb-alphabetical.json
Last active November 2, 2015 21:14
CSS property ordering config files for CSS Comb - https://github.com/csscomb/csscomb.js
{
"exclude": [
".git/**",
"node_modules/**"
],
"vendor-prefix-align": false,
"sort-order": [ [
"-webkit-animation",
"-moz-animation",
"-ms-animation",
@danielwrobert
danielwrobert / wordpress.gitignore
Created June 21, 2014 19:29
My .gitignore for WordPress Projects. Also consider excluding all of the third-party plugins from the wp-content/plugins/ folder and manage those through WP-CLI.
.htaccess
wp-*.php
xmlrpc.php
wp-admin/
wp-includes/
wp-content/uploads/
wp-content/blogs.dir/
wp-content/upgrade/*
wp-content/backup-db/*
wp-content/advanced-cache.php
@danielwrobert
danielwrobert / theme-checklist.sh
Last active August 29, 2015 14:19
Theme checklist grep script.
#!/bin/bash
echo "## No removing or modifying non-presentational hooks (ROW 59):"
echo "------------------------------------------------"
git grep -n "remove_action"
git grep -n "remove_filter"
echo " "
echo " "
echo "## No shortcodes are allowed (ROW 60):"
@danielwrobert
danielwrobert / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@danielwrobert
danielwrobert / .editorconfig
Last active April 19, 2018 14:37
My personal preferences for my EditorConfig file when working on a WordPress project. I save these contents to a .editorconfig file in my project's root directory. If you're not familiar with EditorConfig, you should check it out, it's pretty awesome - http://editorconfig.org/
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8