Skip to content

Instantly share code, notes, and snippets.

View mixj93's full-sized avatar
🎯
Focusing

Li Xueli mixj93

🎯
Focusing
View GitHub Profile
# 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,
@mixj93
mixj93 / 合辑.js
Created June 13, 2018 15:16
第一弹
list.forEach((item)=>{
if (item.querySelector(".status.green")) {
console.log(item.querySelector(".title").innerHTML, "https://www.diyidan.com" + item.querySelector("a").getAttribute("href"))
}
})
@mixj93
mixj93 / manifest.json
Last active September 6, 2018 03:09
manifest for chrome theme
{
"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"
@mixj93
mixj93 / joust.css
Last active September 15, 2018 07:24
joust
.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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: lxl-test
spec:
rules:
- host: lxl-test.cs-spock.cloudappl.com
http:
paths:
- backend:
@mixj93
mixj93 / best-of-javascript.js
Last active September 16, 2019 02:46
Scripts in console
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;
@mixj93
mixj93 / index.js
Last active December 24, 2018 12:25
geektime
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 / client.go
Created January 6, 2019 06:47
Golang Transport
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 / summary.js
Last active March 4, 2019 08:25
JIRA
// 上周总结
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 / README.md
Last active June 3, 2019 04:03
test

一级标题

二级标题

三级标题

四级标题

五级标题