Skip to content

Instantly share code, notes, and snippets.

View oakbow's full-sized avatar
🏠
Working from home

Oakbow oakbow

🏠
Working from home
View GitHub Profile
@oakbow
oakbow / using_web-fonts_with_firefox_on_cloudfront
Last active July 27, 2021 06:22
for using Web fonts with FireFox on AWS S3 + CloudFront.There are CORS and CSS configurations.
target Distribution -> Behaviors -> Edit -> Forward Query Strings -> turn 'Yes'
@oakbow
oakbow / application_helper.rb
Last active December 28, 2015 00:18
for using icons easily, i add helper methods in application_helper.rb. I made this for icomoon, but i think you may be able to use this with Font-Awesome, Twitter Bootstrap2.0 (not WebFont but png icons) and Bootstrap3.0.
# to make <i> easily.
# name: icon class name.
# data: webfont number.some webfonts like icomoon can use with this.
# color: for Bootstrap2.0. you can set this 'white' for white icon.
# class: you can set css class to <i> tag.
# style: you can set inline css to <i> tag.
def icon_tag(options)
raise unless options.present?
case options
when String