Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Leiva StevenXL

View GitHub Profile
@StevenXL
StevenXL / web-fonts-asset-pipeline.md
Created Aug 13, 2019 — forked from anotheruiguy/web-fonts-asset-pipeline.md
Custom Web Fonts and the Rails Asset Pipeline
View web-fonts-asset-pipeline.md

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.

View gist:515f791db05cdf090e32861623eff9d3
- aeson
- aeson-casing
- aeson-iproute
- aeson-pretty
- aeson-typescript
- amazonka
- amazonka-core
- amazonka-s3
- amazonka-sqs
- async
@StevenXL
StevenXL / redis-yesod.md
Created Nov 5, 2018 — forked from bitemyapp/redis-yesod.md
Connecting to Redis from Yesod
View redis-yesod.md

Connecting to Redis from Yesod

This is a quick run-through of how I connected to Redis from a Yesod site (which used the default scaffolding). There isn't much specific to Redis here, so this information should apply to connecting to any database or service from Yesod.

Background: Basics of Hedis

First, a brief intro of the basics of Hedis:

{-# LANGUAGE OverloadedStrings #-}
View rails_setup_notes.txt
rails new my_great_app -T -d postgresql --skip-turbolinks
cd my_great_app
git init
git add .
git commit -m "Initial commit. Rails boilerplate."
#Edit Gemfile. Uncomment the reference to bcrypt and remove the reference to coffee-rails.
bundle install
git add .
You can’t perform that action at this time.