Skip to content

Instantly share code, notes, and snippets.

@omfaer
omfaer / database.rules.json
Created February 4, 2020 11:53 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@omfaer
omfaer / material_design_lite_class_list
Created October 23, 2015 11:08 — forked from bibuggy/material_design_lite_class_list
Material Design Lite version v1.0.4 - Class Names
.browserupgrade
.hidden
.visuallyhidden
.invisible
.clearfix
.mdl-icon-toggle
.mdl-item
.mdl-radio
.mdl-slider
.mdl-switch

Getting Glyphicons from Bootstrap 3.0 in Rails: the easy way

What

Bootstrap 3.0 gives you access to the awesome icon set icon set by these dudes but it's not obvious for a Rails newbie like myself to get it all working together nicely

How

  1. Download the bootstrap-glyphicons.css from here. Save that file to RAILS_ROOT/vendor/assets/stylesheet/bootstrap-glyphicons.css
  2. Save all the font files in /dist/fonts from the Bootstrap 3.0 download to a new folder in your Rails app RAILS_ROOT/vendor/assets/fonts
  3. Add this folder to the asset pipeline by appending config.assets.paths << Rails.root.join("vendor","assets", "fonts") to application.rb after the line that has class Application < Rails::Application.
  4. In bootstrap-glyphicons.css modify the the `url