Skip to content

Instantly share code, notes, and snippets.

@RyanParsley
RyanParsley / tmuxinator-angularstarter.yml
Created April 3, 2015 19:41
angular starter tmuxinator settings
# ~/.tmuxinator/angularstarter.yml
name: angularstarter
root: ~/Sites/angularStarter
windows:
- editor:
layout: main-vertical
panes:
- vim
@RyanParsley
RyanParsley / middlemanJenkinsDeploy.sh
Created April 1, 2015 02:50
How I'm deploying a middleman app via jenkins
#!/bin/bash
source "$HOME/.rvm/scripts/rvm"
rvm use 2.0.0-p598
bundle install
middleman build --clean
middleman deploy
@RyanParsley
RyanParsley / devJargon.md
Last active August 29, 2015 14:17
These are not common phrases to the average person

Assumptions that regular people are familiar with these terms will likely result in communication failure.

  • Yak Shaving
  • Rubberducking
  • Bikeshedding
  • Dogfooding
  • Grok

Unix commands are not commonly understood as verbs!

@RyanParsley
RyanParsley / raspberryPiNotes.md
Last active August 29, 2015 14:17
Raspberry Pi Notes
@RyanParsley
RyanParsley / testing101.md
Last active August 29, 2015 14:16
A brief introduction to testing javascript.

name: Testing 101 class: middle, center

Testing 101

Mar 10, 2015

Unit Testing

  • Test small bits of code
@RyanParsley
RyanParsley / ResponsiveDesignTricks.md
Last active August 29, 2015 14:16
My notes on the Responsive Design Webinar

Responsive Design Tricks

Key take aways

  • Everything old is new again, but this time with sensible tools
  • Strategic REM usage is better than "all or nothing"
  • Deferring advertisement load to the end is better for users and did not affect clicks for smashing magazine

Content choreography

@RyanParsley
RyanParsley / accordions.html
Last active August 29, 2015 14:16
Example of why declarative markup is worth risking the potential quagmire of html complexity.
// Same short bit of js makes both of these sets of markup work the same way.
<section ng-class="{ 'active': accordionA == 1}">
<h2 ng-click="accordionToggle($event, 'accordionA', 1)">Title 1 - A</h2>
<div>
...
</div>
</section>
// Another appropriate flavor of maring up and accordion flavors.
@RyanParsley
RyanParsley / listless
Created February 23, 2015 16:45
Useful *and* punny!
%listless {
list-style: none;
margin: 0;
padding: 0;
}
ul.nav {
@extend %listless;
}
@RyanParsley
RyanParsley / pre-commit
Last active August 29, 2015 14:15
Don't let poorly handled conflicts honey badger your repo
#!/bin/bash
# CONFIG
# Give options empty values to bypass checks ("OPTIONNAME=")
# whether to check ig git merge conflicts have been added
CONFLICTS=1
# Simple check for merge conflics
if [[ -n $CONFLICTS ]]; then
@RyanParsley
RyanParsley / tmuxinatorProject.yml
Created February 13, 2015 16:04
My current tmux configuration.
name: [project name]
root: ~/Sites/[project name]
windows:
- editor:
layout: main-vertical
panes:
- vim
- grunt watch:scripts
- server: grunt watch