Joined February 2012
·

Robert Pearce

Software Developer at The Iron Yard; RidePost, Inc
·
Charleston, SC
·
·
·

Posted to Drop-In Responsive Styles with Sass over 1 year ago

@namxam, no.

Sass:

= responsive($attr, $full, $mid:false, $narrow:false)
  #{$attr}: #{$full}
  @if $mid
    @media screen and (max-width: 800px)
      #{$attr}: #{$mid}
  @if $narrow
    @media screen and (max-width: 480px)
      #{$attr}: #{$narrow}

.my_cool_element
  +responsive(font-size, 24px, 20px)
  +responsive(margin-bottom, 40px, 20px)
  font-size: 24px
  margin-bottom: 40px

.my_cool_element2
  +responsive(font-size, 24px, 20px, 16px)
  +responsive(margin-bottom, 40px, 20px, 10px)
  font-size: 24px
  margin-bottom: 40px

CSS:

.my_cool_element {
  font-size: 24px;
  margin-bottom: 40px;
  font-size: 24px;
  margin-bottom: 40px;
}
@media screen and (max-width: 800px) {
  .my_cool_element {
    font-size: 20px;
  }
}
@media screen and (max-width: 800px) {
  .my_cool_element {
    margin-bottom: 20px;
  }
}

.my_cool_element2 {
  font-size: 24px;
  margin-bottom: 40px;
  font-size: 24px;
  margin-bottom: 40px;
}
@media screen and (max-width: 800px) {
  .my_cool_element2 {
    font-size: 20px;
  }
}
@media screen and (max-width: 480px) {
  .my_cool_element2 {
    font-size: 16px;
  }
}
@media screen and (max-width: 800px) {
  .my_cool_element2 {
    margin-bottom: 20px;
  }
}
@media screen and (max-width: 480px) {
  .my_cool_element2 {
    margin-bottom: 10px;
  }
}

Right. That would require user management and therefore more work on it, which I don't have time for :)

It shall be removed momentarily.

@r_radkov

I'll remove you. If I did what you suggest, anyone could remove anyone, and that's not good. What URL is it?

Posted to "try" method - do you need it? over 1 year ago

A good read from Thoughtbot on "shallow nils" (alternative to try): http://robots.thoughtbot.com/swallow-nil

Last I checked, New Relic was only free for a little while. Looks like that has changed, though! Regardless, this is aimed at the folks who live life on the cheap and not do extra work (aka lazy)

thanks for the alternatives. behind the scenes I am currently keeping a log successful/unsuccessful requests. Given that data, what would be a useful way to display it for each URL?

Posted to Free background jobs on heroku over 1 year ago

Hi, how can this be done with Puma? Concurrency noob here

Achievements
205 Karma
11,940 Total ProTip Views