<github-gist> embed GitHub gists within a Shadow DOM element.
Include gist web component <script>:
| const iframeCode = ` | |
| <style>html,body{margin:0;padding:0}</style> | |
| <script> | |
| window.addEventListener("message", (e) => { | |
| if (e.ports) { | |
| const channel = e.ports[0] | |
| const timestamp = e.data.init | |
| channel.postMessage({'height': document.body.scrollHeight, 'timestamp': timestamp}) | |
| } | |
| }) |
I hereby claim:
To claim this, I am signing this object:
| class Hitch < Formula | |
| desc "A scalable TLS proxy by Varnish Software" | |
| homepage "https://github.com/varnish/hitch" | |
| url "https://github.com/varnish/hitch/archive/hitch-1.4.6.tar.gz" | |
| sha256 "fecc0604a2574e50e99573536eade96769b3435aa787d2095ed9115434a6f003" | |
| head "https://github.com/varnish/hitch.git" | |
| depends_on "automake" => :build | |
| depends_on "autoconf" => :build | |
| depends_on "pkg-config" => :build |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Test Upload</title> | |
| </head> | |
| <body> | |
| <form action="/upload" method="post" enctype="multipart/form-data"> | |
| <input type="file"> | |
| <button>Submit</button> |
| map $http_cf_visitor $cf_scheme { | |
| '{"scheme":"http"}' http; | |
| '{"scheme":"https"}' https; | |
| default $http_x_forwarded_proto; | |
| } | |
| set_real_ip_from 103.21.244.0/22; | |
| set_real_ip_from 103.22.200.0/22; | |
| set_real_ip_from 103.31.4.0/22; | |
| set_real_ip_from 104.16.0.0/12; |
| # code: utf-8 | |
| import json | |
| import datetime | |
| import pymysql | |
| class JSONEncoder(json.JSONEncoder): | |
| def default(self, o): | |
| if isinstance(o, datetime.datetime): |
| #!/usr/bin/env python | |
| import os | |
| import re | |
| import sys | |
| import json | |
| import requests | |
| def parse_junit(filepath): |
| # coding: utf-8 | |
| import json | |
| import logging | |
| import requests | |
| class SlackHandler(logging.Handler): | |
| def __init__(self, url, channel, username='error', emoji='scream'): | |
| super(SlackHandler, self).__init__() |