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
# Copyright 2017 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
list.forEach((item)=>{ | |
if (item.querySelector(".status.green")) { | |
console.log(item.querySelector(".title").innerHTML, "https://www.diyidan.com" + item.querySelector("a").getAttribute("href")) | |
} | |
}) |
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
{ | |
"version": "x.y.z", | |
"name": "the theme name", | |
"theme": { | |
"images" : { | |
"theme_frame" : "images/theme_frame_camo.png", | |
"theme_frame_overlay" : "images/theme_frame_stripe.png", | |
"theme_toolbar" : "images/theme_toolbar_camo.png", | |
"theme_ntp_background" : "images/theme_ntp_background_norepeat.png", | |
"theme_ntp_attribution" : "images/attribution.png" |
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
.card{position:relative;display:inline-block;height:100%;z-index:2;-webkit-animation:c .25s ease-out;animation:c .25s ease-out}.card h1{color:#fff;position:absolute;top:54.25%;font-size:.5em;text-align:center;font-family:belwe_fsextrabold,serif;margin:0 8%;width:84%;max-width:84%;overflow:hidden;text-overflow:ellipsis}.card div.visuals .inhand-minion{width:78%;top:6%;left:11%;clip-path:url(assets/clip-paths.svg#inhand-minion-clip);-webkit-clip-path:ellipse(36% 47% at 50% 50%)}.card div.visuals .inhand-spell{width:70%;top:11%;left:14%;clip-path:url(assets/clip-paths.svg#inhand-spell-clip);-webkit-clip-path:inset(8% 0 4% 0)}.card div.visuals .inhand-weapon{width:67%;top:11%;left:17%;clip-path:url(assets/clip-paths.svg#inhand-weapon-clip);-webkit-clip-path:circle(50% at 50% 50%)}.card div.visuals .inhand-base,.card div.visuals .inhand-legendary,.card div.visuals .inhand-mulligan{height:100%}.card div.visuals .inhand-mulligan{z-index:4}.card .description{position:absolute;font-family:franklin_gothic_fsMdCn,sans-s |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: lxl-test | |
spec: | |
rules: | |
- host: lxl-test.cs-spock.cloudappl.com | |
http: | |
paths: | |
- backend: |
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
let date = document.querySelector('h2[class^="Navigation__Title-"]').querySelector('.hidden-sm').innerText.replace(/\(|\)/g, ''); | |
let res = `Best of JavaScript周报 - ${date}\n`; | |
let cards = document.querySelectorAll('div[class^="ProjectCard__Card-"]'); | |
for (let i = 0; i < cards.length; i++) { | |
let card = cards[i]; | |
let name = card.querySelector('div[class^="ProjectCard__Title-"]').innerText; | |
let url = card.querySelector('a[class^="ProjectCard__Header-"]').href; |
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
let list = document.querySelectorAll('.article-item-wrapper'); | |
let res = ''; | |
for (let i = 0; i < list.length; i++) { | |
let item = list[i]; | |
let name = item.querySelector('.article-item-title').innerText; | |
let url = item.querySelector('.article-item-more-text').href; | |
res += `${i} ${name} ${url}\n\n`; |
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
func basicAuth(username, password string) string { | |
return "Basic " + base64.StdEncoding.EncodeToString([]byte(username+":"+password)) | |
} | |
type KeTransport struct { | |
transport http.RoundTripper | |
username string | |
password string | |
} |
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
// 上周总结 | |
function collectionHas(a, b) { //helper function (see below) | |
for(var i = 0, len = a.length; i < len; i ++) { | |
if(a[i] == b) return true; | |
} | |
return false; | |
} | |
function findParent(elm, selector) { | |
var all = document.querySelectorAll(selector); |