Skip to content

Instantly share code, notes, and snippets.

@RyanParsley
RyanParsley / TechSupportChecklist.md
Created February 28, 2014 17:00
Logan is very busy. Here is the order of operations for tech support.
  1. Turn it off and turn it back on again
  2. Unplug it then plug it back in
  3. http://google.com
  4. Disconnect from the network and reconnect
  5. Plug in an ethernet cable
  6. Call Logan
@RyanParsley
RyanParsley / .gitconfig
Created April 30, 2014 17:19
Windows Dot Files
[core]
autocrlf = false
[push]
default = matching
@RyanParsley
RyanParsley / .zshrc
Last active August 29, 2015 14:01
Basic dev things I like to have on my mac.
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
@RyanParsley
RyanParsley / DrupalThemeNotes.md
Last active December 19, 2016 14:31
Notes on theming Drupal (and thoughts on other CMS)

Drupal theming, one approach

You don't need to know much about Drupal to get pretty far in building a theme. It's mostly html and a few magic php bits and bobs floating around. The tricky bit is learning what magic bits exist and what they're called. Let's take a look at some kinds of templates in Drupal. The best way to think about Drupal themes is probably to image russian dolls.

The outer most level of a Drupal theme is html.tpl.php

This is the stuff that likely doesn't change (although it still can) across your site all that much.

https://github.com/RyanParsley/lessie/blob/master/html.tpl.php

@RyanParsley
RyanParsley / post-receive
Last active August 29, 2015 14:03
hooks/post-receive on server to deploy develop branch via git commits.
cd [path/to/site] || exit
unset GIT_DIR
git clean -f
git pull origin develop
chmod -Rf g+w .
@RyanParsley
RyanParsley / BoggsInstallThese.md
Last active August 29, 2015 14:03
Software Eric Boggs should probably install.
@RyanParsley
RyanParsley / apacheConfigForUIRouter
Created October 20, 2014 14:47
Stuff to add to vhost or .htaccess to make ui-router work without # in the url
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html to allow html5 state links
RewriteRule ^ index.html [L]
@RyanParsley
RyanParsley / testing.md
Last active August 29, 2015 14:11
Testing and CI in a nutshell

Unit Testing

  • Test small bits of code
    • Run javascript without involving the whole app
    • Faster to run
    • Great for adding to watch task
  • Run via Karma
  • Written in Jasmine
@RyanParsley
RyanParsley / extendPhotoshop.md
Last active August 29, 2015 14:14
Notes to myself and whoever cares to read about my initial look into extending Photoshop using javascript.

Extending Photoshop: There be dragons

You can extend Photoshop (and the rest of Adobe's lineup) via javascript, but it's pretty dubiously documented. People do this, and presumably make money at it, but it looks to be a maddening process. Perhaps there's better documentation behind a developer login, but this is the extent of help that I've found so far.

Three paths depending on desired version

Note, there seems to be 3 distinct api changes at these points:

  • CS 6
  • CC up to but not including 2014
  • CC 2014

Choosing a "platform" looks to dictate which tool you should choose.

@RyanParsley
RyanParsley / PhotoshopExtensions.md
Last active August 29, 2015 14:14
Notes on photoshop extensions prepared for gistDeck. Check a formatted version at http://gistdeck.github.io/RyanParsley/329025d6c1f4548f8dcc#1

name: Extend Photoshop with Javascript class: middle, center

Extend Photoshop with Javascript


Why!?

You can extend Photoshop (and the rest of Adobe's lineup) via javascript, but it's pretty dubiously documented. People do this, and presumably make money at it, but it looks to be a maddening process. Perhaps there's better documentation behind a developer login, but this is the extent of help that I've found so far.