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
var detectInjection = function(knownHostsArray) { | |
var requests = window.performance.getEntriesByType("resource"); | |
var unknownHosts = []; | |
var knownHosts = {}; | |
var foundHosts = {}; | |
for (var knownHost in knownHostsArray) { | |
knownHosts[knownHostsArray[knownHost]] = true; | |
} |
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
library("igraph") | |
# Swap out path to your Screaming Frog All Outlink CSV. For Windows, remember to change backslashes to forward slashes. | |
links <- read.csv("C:/Documents/screaming-frog-all-outlinks.csv", skip = 1) # CSV Path | |
# This line of code is optional. It filters out JavaScript, CSS, and Images. Technically you should keep them in there. | |
links <- subset(links, Type=="HREF") # Optional line. Filter. | |
links <- subset(links, Follow=="true") | |
links <- subset(links, select=c(Source,Destination)) | |
g <- graph.data.frame(links) | |
pr <- page.rank(g, algo = "prpack", vids = V(g), directed = TRUE, damping = 0.85) | |
values <- data.frame(pr$vector) |
This memo is taken by Brad Frost
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
<a href="path/to/shopping/cart"> | |
<i class="fa fa-shopping-cart" title="View 3 items in your shopping cart" aria-hidden="true"></i> | |
<span class="sr-only">View 3 items in your shopping cart</span> | |
</a> |
Front-End Style-Guides: Definition, Requirements, Component Checklist
レスポンシブ対応もスタイルガイドに入れよう
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
{ | |
"scripts": { | |
"watch:js": "babel -w ./src/js/ --out-dir ./ --presets=\"es2015\"", | |
"build:js": "babel ./src/js/ --out-dir ./ --presets=\"es2015\"", | |
"serve": "browser-sync start --server --files=\"./*.html, ./*.js\"", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"devDependencies": { | |
"babel-cli": "^6.6.5", |
- Force a single domain
- www有無をどちらかに統一(リダイレクト)
- Prefer HTTPs over HTTP
- HTTPSを使用する
- Optimise for speed
- スピードアップする
- META tags: title & description
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAGAQMAAADJ1T3/AAAABlBMVEVMaXH/AAAkxJXwAAAAAXRSTlMAQObYZgAAABpJREFUeF5jmODCcP0Iw5YQhu0aDFM0GNgbADl+BZrSfARgAAAAAElFTkSuQmCC |