Skip to content

Instantly share code, notes, and snippets.

View joshhepworth's full-sized avatar
👾

Josh Hepworth joshhepworth

👾
  • Huckberry
  • Oklahoma City
View GitHub Profile
@joshhepworth
joshhepworth / index.md
Last active December 14, 2015 19:49
Boilerplate Markdown for Testing Styling

A First Level Header

A Second Level Header

A Third Level Header

A Fourth Level Header

A Fifth Level Header
@joshhepworth
joshhepworth / lockdown.rb
Created September 3, 2013 18:28
Setup basic auth as a middleware for a rack application.
class Lockdown
def initialize(app)
@app = app
end
def call(env)
request = Rack::Request.new(env)
if request.path != '/'
auth = Rack::Auth::Basic::Request.new(env)
@joshhepworth
joshhepworth / README.md
Created September 4, 2013 19:09
Find class usage in HTML.

Use the following regex to search for the usage of a class in some HTML. Replace button as needed.

class\="(?:[A-Za-z\-\s]+ )?button(?: [A-Za-z\-\s]+)?"
@joshhepworth
joshhepworth / keybase.md
Created July 15, 2014 23:47
keybase.md

Keybase proof

I hereby claim:

  • I am joshhepworth on github.
  • I am joshhepworth (https://keybase.io/joshhepworth) on keybase.
  • I have a public key whose fingerprint is 6CD5 85C5 D23B FF1C 2FE2 C9DE 7B32 C5B6 2077 7B05

To claim this, I am signing this object:

<!-- Update html tag to include the itemscope and itemtype attributes for Article-ish items -->
<html itemscope itemtype="http://schema.org/Article">
<!-- In the Head Tag -->
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Schema.org markup for Google, Facebook, General Sharing -->
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content="http://www.example.com/image.jpg">