Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / .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 / 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 / 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 / Animated-Eyeballs.markdown
Created December 15, 2013 02:11
A Pen by Daniel W. Robert.
@danielwrobert
danielwrobert / image-list-resize.js
Created November 22, 2013 00:31
Resize images in a gallery list that are too tall - adjusts the height and centers accordingly. *** Not complete - TESTING ***
// GALLERY IMAGE RESIZER
var getMaxOfArray = function(numArray) {
return Math.max.apply(null, numArray);
};
var getMinOfArray = function(numArray) {
return Math.min.apply(null, numArray);
};
var galleryImageSize = function(selector) {
@danielwrobert
danielwrobert / CSS-Card-Flip.markdown
Last active December 25, 2015 09:39
A Pen by Daniel W. Robert.

CSS Card Flip

CSS card-flip hover effect using CSS 3D Transforms. Fallback hover fade effect for browsers without full support.

A Pen by Daniel W. Robert on CodePen.

License.

@danielwrobert
danielwrobert / facebook-tab-setup.md
Created September 27, 2013 17:19
Notes on setting up a custom Facebook app and installing it as a tab. For Pages only, not for Profiles (as far as I know).

Facebook App & Tab Installation

Create Hosted HTML/CSS/JS Application

  • Develop your app in a max-width 810px container
  • Upload to hosting. If this is a Django project, you can install django-fbapps and create new fbapp. -- To install django-fbapps, follow instructions on Readme.rst file. Additionally, be sure to properly configure path in global urls.py as well as the app-specific urls.py.

Install App in Facebook Developer Admin

  • Create New App -- *If you have not installed any prior applications, you will first need to install the Facebook Developer App
  • Fill in data for 'Basic Info', 'App on Facebook' and 'Page Tab' sections