Skip to content

Instantly share code, notes, and snippets.

@radamant
Created November 16, 2010 23:00
Show Gist options
  • Select an option

  • Save radamant/702693 to your computer and use it in GitHub Desktop.

Select an option

Save radamant/702693 to your computer and use it in GitHub Desktop.

Development

Guidelines

Underscores, spaces, tabs, dashes

ruby

def tabs_or_spaces
  "adam says 2 spaces"
end

json

{
  "json_serialization_is_underscored": {
    "so_that": "ruby and javascript can talk nice"
  }
}

css-selectors

<a class="css-selector"></a>

javascript objects

var ClassLikeFunctionIsPascalCased = function(){
  var that = {};
  
  var myVariableIsCamelCased
  return that;
}

sass / css

p
  alphabetized: "rules"
  make: "life easier"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment