Skip to content

Instantly share code, notes, and snippets.

View andymcfee's full-sized avatar

Andy McFee andymcfee

View GitHub Profile
@andymcfee
andymcfee / index.html
Created May 22, 2019 08:56
Maintenance
<div class="container">
<svg class="illustration" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 28"><defs><style>.cls-3{opacity:.1}.cls-2,.cls-3{fill:#4a8bc9}.cls-3{isolation:isolate}.cls-11{fill:#97d4c6}.cls-12{fill:#f9c1c7}.cls-13{fill:#fdcc99}.cls-14{fill:#78b2e1}.cls-15{fill:#fedeca}.cls-16{fill:#064651}.cls-19{fill:#0f8599}.cls-23{fill:#a3a1cf}.cls-32{fill:#c22026}.cls-34{fill:#fff}</style></defs><path class="cls-2" d="M21.4,24.85c8.37.91,15.24-10.48,8.82-16C28,7,21.2,3.54,19.58,2.74,14.69.33,12.66.12,7.81,2.78-2.38,8.35,2.94,13,7.35,19.53c2.07,3.08.4,4.76,5.27,6.3.88.28,9.17-.78,9.09-.89" opacity=".1"/><path class="cls-3" d="M25.1 9.35L25.08 9.38 25.05 9.38 25.07 9.41 25.07 9.44 25.1 9.42 25.13 9.44 25.12 9.41 25.14 9.38 25.11 9.38 25.1 9.35z"/><path d="M25.79,8.34l0,.08h-.09l.06.06h0v.08h0l.07,0h0l.07,0h0V8.5h0l.06-.06h-.09l0-.08Z" style="isolation:isolate" opacity=".25" fill="#4282c4"/><path d="M26.49,7.33l-.06.12h0l-.13,0s0,0,0,0l.1.09h0l0,.14h0l.12-.06h0l.12.06h0l0-.14h0
@andymcfee
andymcfee / aliases.zsh
Created November 22, 2017 20:13
.oh-my-zsh/custom/
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
@andymcfee
andymcfee / alias-update.zsh
Created August 18, 2017 07:23
Update All: Get OS X Software Updates, and update installed Homebrew, casks, npm, and their installed packages, and oh_my_zsh
# Get OS X Software Updates, and update installed Homebrew, casks, npm, and their installed packages, and oh_my_zsh
alias updateall='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; brew cask reinstall `brew cask outdated`; brew cask cleanup; npm install npm -g; npm update -g; upgrade_oh_my_zsh'
@andymcfee
andymcfee / sass-guidelines.md
Created June 1, 2016 08:23
My guidelines for writing Sass

Don't BEM nest.

.button {
  &--modifier {
    ...
  }
}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@andymcfee
andymcfee / seo.md
Created December 11, 2014 17:30
SEO Notes and Findings

Convert MOV to GIF using FFmpeg and ImageMagick

I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!

Preparation

Install FFmpeg

  • $ brew install ffmpeg [all your options]
    • Example: $ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools

Install ImageMagick

#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@andymcfee
andymcfee / minimal-facebook.css
Last active August 29, 2015 14:06
I've added some custom CSS to Facebook in my browser to get rid of a lot of the clutter and make the whole page a bit cleaner. Using chrome extension StyleBot to apply to styles
._4f7n {
background-color: transparent;
background-image: none;
box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0);
-webkit-box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0);
border-bottom: none;
}
._4f7n:after {
background-image: none;
@andymcfee
andymcfee / BRBA-1_offline-app-request.md
Last active August 29, 2015 14:05
Broad Request, Broad Approach - a quick thought exercise about how I would approach various broad, open-ended client requests for projects.

Broad Request, Broad Approach

Vol. 1: Offline Websites

The Request

Client wants a 2-3 page mini-site. Some pages are static (Home, Contact) where the content will never change and dynamic (Product page) where client has the ability to add/remove new products to a gallery or list of products.

Client also wants for the site to be accessible when they don't have access to an internet connection (at an event or visiting retailers, customers, etc).

The Approach