Skip to content

Instantly share code, notes, and snippets.

View Ancientwood's full-sized avatar

Anc Ancientwood

View GitHub Profile
Level ██████████░░░░░░░░░░░Lv.20/48%
Coding ░░░░░░░░░░░░░░░░░░░░░5000/0
----------------------------------------
https://codestats.net/users/Anc
<!DOCTYPE html>
<html>
<head>
<title>vue</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
#steam 入库
jQuery.post(
'//store.steampowered.com/checkout/addfreelicense',
{
action: 'add_to_cart',
sessionid: g_sessionID,
subid:439194
})
let items = [''];
let options = {
method: 'POST',
headers:{
'Origin': 'https://mine.cubejoy.com',
'Referer': 'https://mine.cubejoy.com/JSJ/TaskList'
}
}
//自我数 (Self number)
//不能由任何一个整数加上这个整数的各位数字和生成的数,称之为自我数。例如:21不是自我数,因为21可以由整数15和15的各位数字1,5生成,即21=15+1+5。
function selfNumber(num){
for(let i=0;i<=1000;i++){
if(calc(i) == num)
return false;
}
return true;
}
function calc(num){
let that;
class Tab{
constructor(el){
that = this;
this.main = document.querySelector(el);
this.button = document.querySelector("button");
this.ul = document.querySelector("ul");
this.lis = document.querySelectorAll("li");
this.init();
}
url='socks5://127.0.0.1:7890'
alias ssoff='unset http_proxy;unset https_proxy'
alias sson='export http_proxy=$url; export https_proxy=$url'
alias clipsend='_a(){ curl server:port/"$1"/"$1" -d "content=$2" }; _a'
alias clipget='_a(){ curl server:port/"$1"/"$1" }; _a'
alias copy='_a(){ echo "$1" > temp && clip.exe < temp && rm temp }; _a'
alias cht='_a(){ curl cheat.sh/"$1" }; _a'
alias qrcode='_a(){ curl qrenco.de/"$1" }; _a'
alias weather='curl "http://wttr.in/杭州?m&lang=zh"'
@Ancientwood
Ancientwood / auto_page.js
Last active January 26, 2022 07:45
chrome js collection
javascript: (function () {
const d = document.documentElement;
const stepTime = 5000;
const overlap = 80;
const scroll = {};
const stopScroll = ()=>{
scroll.state = false;
scroll.time = null;
};
stopScroll();
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Mouse,Screen
SysGet, Mon1, Monitor, 1
SysGet, Mon2, Monitor, 2
isLeft := StrSplit(A_ScriptName, ".")[1] == "mouse_left" ? 1 : 0
@echo off
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\anc\Desktop\soft\script\dark.ps1"