This file contains hidden or 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
(function () { | |
var github = function () { | |
var parts; | |
if (parts = window.location.pathname.match(/^\/([^\/]+\/[^\/]+)\/(?:issues|pull)\/(\d+)/)) { | |
var repo = parts[1]; | |
var issue = parts[2]; | |
var url = window.location.href; | |
var name = document.querySelector(".js-issue-title").innerText; | |
window.open([ |
This file contains hidden or 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
var app = require("express")(); | |
// JSON parse the body of requests with `application/csp-report` content type. | |
app.use(require("body-parser").json({ | |
type: "application/csp-report" | |
})); | |
// Page with CSP header (in report-only mode). | |
app.get("/", function (req, res) { | |
res.setHeader("Content-Security-Policy-Report-Only", [ |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore.js"></script> | |
<script> | |
(function () { | |
var key = "1HwGVE-MqVmeLwcfljmBmuTD55arVxsElG3C2urJadAw"; | |
var url = "https://spreadsheets.google.com/feeds/list/" + key + "/od6/public/values?alt=json"; |
OlderNewer