Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jworley on github.
  • I am jworley (https://keybase.io/jworley) on keybase.
  • I have a public key whose fingerprint is 131C 2EA2 766E E026 243F 5097 36E2 4CB4 6BB8 C647

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jworley on github.
  • I am jworley (https://keybase.io/jworley) on keybase.
  • I have a public key whose fingerprint is E1A5 7BCF 7278 8CB2 6FFA 6F99 B357 578F EF6A 4D8C

To claim this, I am signing this object:

@jworley
jworley / designer.html
Created August 27, 2014 13:16
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@jworley
jworley / puts_check.rb
Last active December 15, 2015 00:39
Example custom metric for Square's Cane gem. Checks source code for `puts` and `print` left behind by developers.
require 'cane/file'
require 'cane/task_runner'
class PutsCheck < Struct.new(:opts)
DESCRIPTION =
"Lines output to console using `puts` or `print`"
PUTS_REGEX = /^\s*p(uts|rint)?[\s\(]+(.+?)\s*[\)\s]*$/
PUTS_GLOB = '{app,lib}/**/*.rb'
def self.key; :puts; end