Skip to content

Instantly share code, notes, and snippets.

🎯
8x M24 aiming

Li Xueli mixj93

🎯
8x M24 aiming
Block or report user

Report or block mixj93

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mixj93
mixj93 / cm.yaml
Last active Sep 19, 2019
k8s yamls
View cm.yaml
apiVersion: v1
data:
theKey: theValue
kind: ConfigMap
metadata:
name: configmap
namespace: lxl
View README.md

一级标题

二级标题

三级标题

四级标题

五级标题
View summary.js
// 上周总结
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);
@mixj93
mixj93 / client.go
Created Jan 6, 2019
Golang Transport
View client.go
func basicAuth(username, password string) string {
return "Basic " + base64.StdEncoding.EncodeToString([]byte(username+":"+password))
}
type KeTransport struct {
transport http.RoundTripper
username string
password string
}
@mixj93
mixj93 / index.js
Last active Dec 24, 2018
geektime
View index.js
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`;
@mixj93
mixj93 / best-of-javascript.js
Last active Sep 16, 2019
Scripts in console
View best-of-javascript.js
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;
View spock.service-template.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: lxl-test
spec:
rules:
- host: lxl-test.cs-spock.cloudappl.com
http:
paths:
- backend:
View joust.css
.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
@mixj93
mixj93 / manifest.json
Last active Sep 6, 2018
manifest for chrome theme
View manifest.json
{
"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"
View 合辑.js
list.forEach((item)=>{
if (item.querySelector(".status.green")) {
console.log(item.querySelector(".title").innerHTML, "https://www.diyidan.com" + item.querySelector("a").getAttribute("href"))
}
})
You can’t perform that action at this time.