Skip to content

Instantly share code, notes, and snippets.

View StevenXL's full-sized avatar
🙌
WFH

Steven Leiva StevenXL

🙌
WFH
View GitHub Profile
@StevenXL
StevenXL / rails_setup_notes.txt
Created October 18, 2015 22:36 — forked from stevecass/rails_setup_notes.txt
Starting a new rails app
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 .
@StevenXL
StevenXL / redis-yesod.md
Created November 5, 2018 02:35 — forked from bitemyapp/redis-yesod.md
Connecting to Redis from Yesod

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 #-}
- aeson
- aeson-casing
- aeson-iproute
- aeson-pretty
- aeson-typescript
- amazonka
- amazonka-core
- amazonka-s3
- amazonka-sqs
- async
@StevenXL
StevenXL / web-fonts-asset-pipeline.md
Created August 13, 2019 02:52 — 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.