Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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
*
// Seriously, why isn't this just the
// freakin' default in all browsers?
+background-clip(padding-box)
// Not sure what this does? Have a looksie...
// http://compass-style.org/examples/compass/css3/background-clip
// Crucial, if you have rounded corners on something with
// both background color and a border. Without, background
@danielwrobert
danielwrobert / bodyclass.php
Created June 13, 2012 03:40
A simple way to add a body class dynamically by removing the .php extension and echoing the name of the file.
<body class="<?=basename($_SERVER['PHP_SELF'],'.php')?>">
@danielwrobert
danielwrobert / Custom.css
Created July 20, 2012 22:47 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Kam Kuo - 2012
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/* and Ben Truyman's Gist:
/* https://gist.github.com/1150520
/*
/* Inspired by Darcy Clarke's blog post:
@danielwrobert
danielwrobert / demo.html
Created October 15, 2012 22:30 — forked from zenlor/demo.html
lazy loader
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> - jsFiddle demo</title>
<script type='text/javascript' src='lazyload.js'></script>
<style type='text/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",