Skip to content

Instantly share code, notes, and snippets.

View mixj93's full-sized avatar
🎯
Focusing

Li Xueli mixj93

🎯
Focusing
View GitHub Profile
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: lxl-test
spec:
rules:
- host: lxl-test.cs-spock.cloudappl.com
http:
paths:
- backend:
@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
@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 / 合辑.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"))
}
})
# 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 / simple-3.py
Last active March 27, 2018 07:17
Flask 101
from flask import Flask, request, render_template, jsonify, json, abort
app = Flask(__name__)
userList = []
'''
{
"username": "johnsmith",
"age": 24,
"gender": "male"
}
@mixj93
mixj93 / animals.js
Last active July 25, 2021 21:37
Express Routers
const express = require('express');
const { getElementById, getIndexById, updateElement,
seedElements, createElement } = require('./utils');
let animals = [];
seedElements(animals, 'animals');
animalsRouter = express.Router();
@mixj93
mixj93 / app.js
Last active October 13, 2021 09:00
Express.js crud example code
const express = require('express');
const app = express();
// Serves Express Yourself website
app.use(express.static('public'));
const { getElementById, getIndexById, updateElement,
seedElements, createElement } = require('./utils');
const expressions = [];
@mixj93
mixj93 / weibo-auto.js
Created November 17, 2017 08:56
web-auto
var followList = document.querySelectorAll(".member_li")
for (var i = 0; i < 0; i++) {
var evt = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window
});
followList[i].dispatchEvent(evt)
}
@mixj93
mixj93 / macos-panic-log-20170614190621
Last active June 16, 2017 02:53
Mac五国重启日志
Anonymous UUID: BB5E83D9-FE01-B505-1ACA-25FCEF0B0E12
Wed Jun 14 19:06:21 2017
*** Panic Report ***
panic(cpu 0 caller 0xffffff80193ff2dd): Kernel trap at 0xffffff80192977ff, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x000000001cb39000, CR4: 0x00000000001627e0
RAX: 0xffffff80325630c0, RBX: 0xc0ffeee2cfc593ca, RCX: 0xffffff802faf22b0, RDX: 0xffffff8019a6a338
RSP: 0xffffff9137eb3d98, RBP: 0xffffff9137eb3db0, RSI: 0x00000000010c0014, RDI: 0x0000000000000000
R8: 0xffffff803317af80, R9: 0x0000000000000001, R10: 0xffffff8019a671b0, R11: 0xffffff8019939f54