Skip to content

Instantly share code, notes, and snippets.

View andymcfee's full-sized avatar

Andy McFee andymcfee

View GitHub Profile

Level UP

The purpose of this list is two-fold:

  1. Have a list of all my skills - high-level and low - all in one place
  2. Motivate me to study and level up skills I'm lacking but interested in

Level 1

Mildly familiar, highly intrigued

@andymcfee
andymcfee / RailsCastMod.tmTheme
Created September 23, 2013 10:13
My Sublime Text color theme. A mod of the RailsCast theme, slightly more vibrant though. Install Mac: Copy this file to ~/Library/Application Support/Sublime Text 3/Packages/User/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>gutterSettings</key>
<dict>
@andymcfee
andymcfee / gist:7658630
Created November 26, 2013 13:56
Assemble documentation is hard. This is my cheatsheet for finding what I need.
@andymcfee
andymcfee / _triangle.scss
Created February 24, 2014 12:55
Sass Triangle Mixin
/*
* @include triangle within a pseudo element and add positioning properties (ie. top, left)
* $direction: up, down, left, right
*/
@mixin triangle($direction, $size: 6px, $color: #222){
content: '';
display: block;
position: absolute;
height: 0; width: 0;
@if ($direction == 'up'){
@andymcfee
andymcfee / _tooltip.scss
Created February 24, 2014 12:59
Hover Tooltip Mixin
/*
* $direction: top or bottom
*
*/
@mixin tooltip($content: attr(data-tooltip), $direction: top) {
position: relative;
&:before, &:after {
display: none;
z-index: 98;
@andymcfee
andymcfee / tutorials.md
Last active August 29, 2015 14:01
Tutorials I Have Used
@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

@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;
#!/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'

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