Skip to content

Instantly share code, notes, and snippets.

View mpeteuil's full-sized avatar
🧪
Mix, mix, swirl, mix

Michael Peteuil mpeteuil

🧪
Mix, mix, swirl, mix
View GitHub Profile
@mpeteuil
mpeteuil / rubocop_pre_commit_hook
Created August 3, 2013 17:44
Ruby style guide git pre-commit hook using Rubocop as the style guide checker. Only runs on staged ruby files that have been added and/or modified.
#!/usr/bin/env ruby
require 'english'
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
file_name_with_status =~ ADDED_OR_MODIFIED
@mpeteuil
mpeteuil / gist:9649178
Last active August 29, 2015 13:57
keybase.md
### Keybase proof
I hereby claim:
* I am mpeteuil on github.
* I am mpeteuil (https://keybase.io/mpeteuil) on keybase.
* I have a public key whose fingerprint is 68B7 CB74 F9CD 756A E4A3 32C3 07F3 2152 5CFC 18CC
To claim this, I am signing this object:
@mpeteuil
mpeteuil / SassMeister-input-HTML.html
Created February 14, 2015 00:12
Generated by SassMeister.com.
<html>
<head>
</head>
<body>
<div class="1-of-12">
</div>
</body>
</html>
# -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,