Skip to content

Instantly share code, notes, and snippets.

@salbertson
salbertson / README.md
Created November 14, 2018 22:32
Simple Hound badge

Reviewed by Hound

@salbertson
salbertson / example.rb
Created October 6, 2017 16:58
Groove API examples - Ruby
require "uri"
require "net/https"
require "json"
# Here's an example of creating a ticket by an agent for a customer, with a hash of customer attributes.
uri = URI.parse("https://api.groovehq.com/v1/tickets")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
@salbertson
salbertson / scss-style.yml
Created February 5, 2015 16:34
SCSS style guide for Hound
scss_files: "**/*.scss"
linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false
BorderZero:
enabled: false
@salbertson
salbertson / javascript-style.json
Created February 5, 2015 16:27
JavaScript style guide for Hound
{
"asi": false,
"bitwise": true,
"browser": true,
"camelcase": true,
"curly": true,
"forin": true,
"immed": true,
"latedef": "nofunc",
"maxlen": 80,
@salbertson
salbertson / .coffeescript-style.json
Created February 5, 2015 16:25
CoffeeScript style guide for Hound
{
"arrow_spacing": {
"level": "error"
},
"camel_case_classes": {
"level": "error"
},
"coffeescript_error": {
"level": "error"
},
@salbertson
salbertson / .ruby-style.yml
Created February 5, 2015 16:13
Ruby style guide for Hound
AllCops:
Exclude:
- db/schema.rb
AccessorMethodName:
Enabled: false
ActionFilter:
Enabled: false
@salbertson
salbertson / .hound.yml
Created January 27, 2015 17:55
Enable SCSS style checking
scss:
enabled: true
config_file: .scss-style.json
@salbertson
salbertson / hound.yml
Created February 20, 2014 19:14
Hound configuration
StringLiterals:
EnforcedStyle: double_quotes
@salbertson
salbertson / gist:2321183
Created April 6, 2012 16:34
Installing ruby-debug for 1.9.3-p125
# Install with:
# bash < <(curl -L https://raw.github.com/gist/2321183)
echo "Installing ruby-debug with ruby-1.9.3-p125 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p125/