Public Gists by tdreyno

Gravatar
Mon Nov 16 11:40:40 -0800 2009
1
2
3
=min-height(!height)
  min-height= !height
  height: auto !important
Gravatar
Mon Nov 16 11:34:17 -0800 2009
1
2
3
In your init.rb
 
This:
Gravatar
Mon Nov 16 11:08:42 -0800 2009
1
2
3
# Normal Sinatra version
get "/index.html" do
  haml :index
Gravatar
Mon Nov 16 11:04:15 -0800 2009
1
2
3
class Sinatra::Base
  # not my code
  def self.get(url, *args)
Gravatar
Tue Nov 10 10:43:04 -0800 2009
1
2
3
#header {
  height: 108px;
  overflow: hidden;
Gravatar
Mon Nov 09 14:22:08 -0800 2009
1
2
3
get "/layoutless_page" do
  haml :"layoutless_page.html", :layout => false
end
Gravatar
Thu Nov 05 11:24:10 -0800 2009
1
2
3
:table
  Col1 | Col2 | Col3
  5 | 6 | 7
Gravatar
Thu Nov 05 11:21:50 -0800 2009
1
2
3
%pre
  :preserve
    Text
Gravatar
Tue Nov 03 11:40:21 -0800 2009
1
2
3
def partial(name)
  haml name.to_sym, :layout => false
end
Gravatar
Tue Nov 03 10:39:58 -0800 2009
1
2
3
def find_and_include_related_sass_file
  path = request.path_info.dup
  path << self.class.index_file if path.match(%r{/$})
Gravatar
Thu Oct 08 14:15:00 -0700 2009
1
2
3
require 'config/path_helpers'
require 'config/haml_helpers'
 
Gravatar
Fri Sep 04 10:52:12 -0700 2009
1
2
3
 
<div class="careersOuter clearfix">
<div class="careersHead">Current Openings</div>
Gravatar
Wed Sep 02 10:50:20 -0700 2009
1
2
3
=column-with-border(!n, !border_color = #eee, !width = 1px)
  +column-base
  width= (!blueprint_grid_width * !n + (!blueprint_grid_margin * (!n - 1)) - (2 * !width))
Gravatar
Fri Aug 14 10:50:37 -0700 2009
1
2
3
<?php
$thishost=$_SERVER['SERVER_NAME'];
 
Gravatar
Mon Aug 10 11:38:00 -0700 2009
1
2
3
!header_selector = "h1,h2,h3,h4,h5,h6"
#{!header_selector}
  font-weight: bold
Gravatar
Fri Aug 07 15:46:53 -0700 2009
1
2
3
<dl>
  <dt>Pic</dt>
  <dd>
Gravatar
Thu Aug 06 13:33:26 -0700 2009
1
2
3
%strong.large<
  %span.dollars $
  3600
Gravatar
Wed Aug 05 11:05:57 -0700 2009
1
2
3
$.fn.googleMap = function(address, options) {
  var defaults = {
    zoom: 14,
Gravatar
Tue Aug 04 12:06:27 -0700 2009
1
2
3
    Compass.configuration do |config|
      config.project_path = Dir.pwd
 
Gravatar
Tue Aug 04 11:55:21 -0700 2009
1
2
3
    module ::Haml::Filters::Sass
      def render(text)
        ::Sass::Engine.new(text, Compass.sass_engine_options).render