Skip to content

Instantly share code, notes, and snippets.

View juandazapata's full-sized avatar

Juanda juandazapata

View GitHub Profile

Keybase proof

I hereby claim:

  • I am juandazapata on github.
  • I am juanda (https://keybase.io/juanda) on keybase.
  • I have a public key whose fingerprint is 2384 E377 EF78 8611 7B02 8681 29F3 A273 9086 4C0E

To claim this, I am signing this object:

$ cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
$ ln -s libMagick++-Q16.7.dylib libMagick++.dylib
$ ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
$ ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib
# Remap prefix from 'C-b' to 'C-t'
unbind C-b
set -g prefix C-t
bind-key -r C-t send-prefix
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# Split panes using / and -
bind / split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
set nocompatible
filetype off
filetype plugin indent on
syntax enable
call plug#begin('~/.local/share/nvim/plugged')
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'w0rp/ale'
@juandazapata
juandazapata / web-fonts-asset-pipeline.md
Created June 10, 2018 15:38 — forked from anotheruiguy/web-fonts-asset-pipeline.md
Custom Web Fonts and the Rails Asset Pipeline

Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.

Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.

As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.

The recommended way

Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.