This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
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]+)?"
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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"> |