Skip to content

Instantly share code, notes, and snippets.

82c82
< CONFIG["LIBRUBY_DLDFLAGS"] = "-undefineddynamic_lookup -multiply_definedsuppress -install_name $(libdir)/$(LIBRUBY_SO) -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibility_version $(ruby_version) $(XLDFLAGS)"
---
> CONFIG["LIBRUBY_DLDFLAGS"] = "-Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -install_name $(libdir)/$(LIBRUBY_SO) -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibility_version $(ruby_version) $(XLDFLAGS)"
125c125
< CONFIG["DLDFLAGS"] = "-undefineddynamic_lookup -multiply_definedsuppress"
---
> CONFIG["DLDFLAGS"] = "-Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress"
$journey: (states: complete in-progress current, packets: (strengths: blue, others: green, networking: pink, approach: yellow, coworker: purple))
@function journey-image($state, $packet-color)
@if $state == complete
@return url('/assets/journey/#{$packet-color}-gem.png')
@else
@return url('/assets/journey/#{$packet-color}-gem-outline.png')
@each $packet, $packet-color in map-get($journey, packets)
@each $state in map-get($journey, states)
.field
Display Name:
= h @user.name
= link_to "edit", edit_user_url(@user, :field => "name")
.field
Your Email:
= h @user.email
= link_to "edit", edit_user_url(@user, :field => "email")
.field
Password:
get "/stylesheets/screen.css" do
content_type 'text/css'
# Use views/stylesheets & blueprint's stylesheet dirs in the Sass load path
sass :"stylesheets/screen", :sass => Compass.sass_engine_options
end
def f(ra,n)
r=0
ra.each {|x| r+=1 if x.include? n}
r
end
def g(ra, n)
ra.inject(0){|m, x| m + (x.include?(n) ? 1 : 0) }
end
module ActionView
class ErSass < ActionView::TemplateHandler
include ERB::Util
def self.call(template)
"ActionView::ErSass.new(self).render(template, local_assigns)"
end
def initialize(view = nil)
@view = view
@import compass/reset.sass
@import blueprint.sass
@import blueprint/modules/form.sass
@import blueprint/modules/liquid.sass
@import compass/layout.sass
@import compass/utilities.sass
@import icons.sass
+blueprint-typography
+blueprint-utilities
@import compass/utilities/general/inline_block.sass
.my-nav
.tabs
li
:border none
.tab_l, .tab_t, .tab_r
+inline-block
:background-repeat no-repeat
:height 35px
:color red
@import 960/grid.sass
#gallery
+grid-container
// Or whatever gallery wrapper white padding used to be
padding: 1em 0
background-color: white
#images
+grid(9,12)