I hereby claim:
- I am sawyerh on github.
- I am sawyer (https://keybase.io/sawyer) on keybase.
- I have a public key ASBLD4Q7cshgms5cr00G-CA7Qc_pCD1HrlpgQ_Ufr_ZWvgo
To claim this, I am signing this object:
class BlogsController < ApplicationController | |
def index | |
@slug = params[:slug] | |
@file = AWS::S3.new.buckets['YOUR-SITELEAF-BUCKET-HERE'] | |
.objects[File.join('blog', @slug.to_s, 'index.html')] | |
unless @file.exists? | |
puts @file.key | |
raise ActionController::RoutingError.new('Not Found') | |
end |
I hereby claim:
To claim this, I am signing this object:
{ | |
"presets": [ | |
"react", | |
"es2015" | |
] | |
} |
var attrs = imageNode.attrs; | |
attrs.src = 'http://example.com/image.jpg'; | |
var replacement = imageNode.type.create(attrs); | |
editor.tr.replaceWith(pos.from, pos.to, replacement).apply(); |
{% if current.type == 'page' %} | |
{% for post in posts %} | |
{{ post.body }} | |
{% endfor %} | |
{% elsif current.type == 'post' %} | |
{{ body }} | |
<? preg_match('#(?:https?://(?:www\.){0,1}amazon\.(com|ca|co\.uk)(?:/.*){0,1}(?:/dp/|/gp/product/))(.*?)(?:/.*|$)#',$item->content,$matches); ?> |
javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('id', 'wander-bookmarklet-script');e.setAttribute('src','http://lvh.me:3000/bookmarklet/bookmarklet-local.js?v=1&url='+encodeURIComponent(window.location.href));document.body.appendChild(e)%7D)()); |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style type="text/css"> | |
#outlook a{ | |
padding:0; | |
} | |
body{ | |
background: url("https://static.dev.anosrep.org/v/fb16875e7d/common/i/grain.png") #76868f; |
<svg width="640" height="360" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"> | |
<filter id="grayscale"> | |
<feColorMatrix type="saturate" values="0"/> | |
</filter> | |
<image class="bw" filter="url(#grayscale)" width="100%" height="100%" xlink:href="image.jpg" /> | |
<image class="color" width="100%" height="100%" xlink:href="image.jpg" /> | |
</svg> |