This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Rails.env.development? | |
class DevtoolsController < ApplicationController | |
def modules | |
@modules = Dir["app/assets/stylesheets/nri-modules/*.css.*"].map do |filename| | |
filename =~ %r{/([^/]+)\.css} | |
$1 | |
end | |
render layout: 'text' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Descss | |
def initialize(module_name) | |
# Modules output content, so they should include the .css extension. | |
# (This is why we don't look for module.sass, just module.css.sass.) | |
begin | |
file = File.open("app/assets/stylesheets/nri-modules/#{module_name}.css.sass") | |
rescue | |
file = File.open("app/assets/stylesheets/nri-modules/#{module_name}.css.scss") | |
end | |
@source = file.read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sass/plugin' | |
#allows inline sass! | |
::Sass::Plugin.options[:load_paths] = Rails.application.config.assets[:paths].to_a + Compass.configuration.sass_load_paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
___ ___ ___ __ __ ___ _____ ______ | |
/ \ /_ \ /_ \ /_ \/_ \/_ \ / ___ \ / __ \ | |
|/\ \ / / | | | / \ / \ | / /___\ \ / / \ \ | |
\ \/ / | | | | | | | | | ______/ | | | | | |
\ / | | | | | | | | | \ __ | | | | | |
\ / | |_ | | | | | | \ \__/ / \ \__/ / | |
\/ \__/ \_\ \_\ \_\ \____/ \______/ | |
You know, for videos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file only contains additions to Zepto to add lesser-used functions | |
# from jQuery that we do actually need. | |
if this.Zepto | |
do ($ = Zepto) -> | |
# innerHeight & outerHeight are needed by <a plugin we use> | |
# | |
# outerHeight is documented at http://api.jquery.com/outerHeight/ | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void((function(){var d=document;var ocss='html body, html body *{-webkit-font-smoothing: antialiased !important;}';var L=d.createElement('style');L.innerHTML=ocss; document.getElementsByTagName('head')[0].appendChild(L);})()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void((function(){var d=document;var ocss='html body, html body *{-webkit-font-smoothing: auto !important;}';var l='style'; var L=d.createElement(l);L.innerHTML=ocss; document.getElementsByTagName('head')[0].appendChild(L);})()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# humane.js | |
# Humanized Messages for Notifications | |
# @author Marc Harter (@wavded) | |
# @example | |
# humane('hello world'); | |
# See more usage examples at: http://wavded.github.com/humane-js/ | |
# | |
# Modified by Alan Hogan (@alanhogan) | |
# (Diverged 2012-01-27.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ \b | |
charset= | |
['"]? # optional quotes | |
( # Capture | |
(?: # Non-capturing group, essentially a custom char class | |
\w # word characters | |
| | |
- # or hyphen | |
)+ | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/my_username/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc8/lib/rails/railtie/configuration.rb:78:in `method_missing': undefined method `sass' for #<Rails::Application::Configuration:0x000001033b6d58> (NoMethodError) | |
from /Users/my_username/.rvm/gems/ruby-1.9.2-p180/bundler/gems/compass-22e2458b7751/lib/compass/configuration/helpers.rb:82:in `block in configure_rails!' | |
from /Users/my_username/.rvm/gems/ruby-1.9.2-p180/bundler/gems/compass-22e2458b7751/lib/compass/configuration/helpers.rb:81:in `each' | |
from /Users/my_username/.rvm/gems/ruby-1.9.2-p180/bundler/gems/compass-22e2458b7751/lib/compass/configuration/helpers.rb:81:in `configure_rails!' | |
from /Users/my_username/.rvm/gems/ruby-1.9.2-p180/bundler/gems/compass-22e2458b7751/lib/compass/app_integration/rails/actionpack31/railtie.rb:86:in `block in <class:Railtie>' | |
from /Users/my_username/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc8/lib/rails/initializable.rb:25:in `instance_exec' | |
from /Users/my_username/.rvm/g |