Skip to content

Instantly share code, notes, and snippets.

View abearxiong's full-sized avatar
💭
coding

熊潇 abearxiong

💭
coding
  • china
View GitHub Profile

腾讯的api网关,使用记录

  1. 新建服务,创建API
  2. 使用无服务函数scf

无服务函数创建函数

  1. 函数代码
'use strict'
/**************************************************
@abearxiong
abearxiong / QQCrypter.cs
Last active February 15, 2023 03:30
socket learning python
/// <summary>
/// 加密解密QQ消息包的工具类.
/// </summary>
public static class QQCrypter
{
private static Random Rnd = new Random();
private static void code(byte[] In, int inOffset, int inPos, byte[] Out, int outOffset, int outPos, byte[] key)
{
if (outPos > 0)
{
@abearxiong
abearxiong / jekyll-guide.md
Last active June 15, 2019 06:09 — forked from hellokaton/jekyll-guide.md
Jekyll 中的配置和模板语法

Jekyll 中的配置和模板语法

配置

文件介绍

_config.yml

Jekyll 的全局配置文件。
比如网站的名字,网站的域名,网站的链接格式等等。

mutation CreateIssuePayload{
addReaction(input:{subjectId:"MDU6SXNzdWU0NDI5OTAxODU=",content:HOORAY}){
reaction{
content
}
subject{
id
}
}
}
@abearxiong
abearxiong / a使用方式.txt
Last active September 13, 2020 15:59
毕业生电子离校单,爬取,获得,显示结果。
方法1:
# 1. 复制根目录,不需要安装任何东西(看到这个就是已经属于复制好了)
# 2. 打开powershell,转到(cd)到src目录,
# 3. 在src里面的目录运行
..\envir\Scripts\python.exe -m http.server 8000
# 4. 访问浏览器 http://127.0.0.1:8000
# 静态文件的url是 名字.html
# 查找自己名字,选择即可
@abearxiong
abearxiong / FileResource.java
Created July 10, 2019 09:09
schedulerR的记录,关于文件上传的记录
extension
<template>
<div class="equip">
<b-input v-model="searchEquip"/>
<b-checkbox-group>
<b-checkbox v-for="(kind,index) in kinds" :key="index" v-model="selectKinds" :value="kind.id" :title="kind.property">{{ kind.name }}</b-checkbox>
</b-checkbox-group>
<div v-if="equips">
<b-card v-for="(equip, index) in equips.equip" :key="index" :hidden="!equip.show">
<b-img-lazy v-bind="equipPicProps" :src="'https://wegame.gtimg.com/tgp_act/release/wegame/equips/images/'+equip.id+'.png'" :title="equip.property"></b-img-lazy>
@abearxiong
abearxiong / 致美化鼠标主题.ipynb
Created October 23, 2019 00:48
爬虫/致美化鼠标指针/致美化鼠标主题.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abearxiong
abearxiong / listNew.js
Last active October 28, 2019 15:54
关于浏览器端js到底部刷新的问题!
document.write("hhh")
let max = 0
for(let i=0;i<20;i++){
document.write(i+"<br/>")
max = i
}
localStorage.setItem("lodding", false)
window.addEventListener("scroll",function(){
let scrollHeight = document.documentElement.scrollHeight
let scrollTop = document.documentElement.scrollTop
@abearxiong
abearxiong / index.html
Last active November 3, 2019 16:21
js文件上传 剪贴板 拖拽 选择
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="utf-8">
<!-- Begin styles -->
<link rel="stylesheet" href="./styles/main.min.css" type="text/css">