I hereby claim:
- I am tennousuathena on github.
- I am qctech (https://keybase.io/qctech) on keybase.
- I have a public key ASBBAd5ZFNBbxvbAoswQxPC-wzHSda-EZeK1eNiqYiRhnQo
To claim this, I am signing this object:
import os | |
import random, time | |
import win32com.client | |
from ctypes import * | |
import win32api,win32con | |
screenX = win32api.GetSystemMetrics(win32con.SM_CXSCREEN)//1.1 | |
screenY = win32api.GetSystemMetrics(win32con.SM_CYSCREEN)//1.1 | |
started = False |
#!/usr/bin/python3 | |
import requests, os, time | |
while True: | |
url = "https://v1.hitokoto.cn/?c=i" | |
response = requests.get(url).json() | |
file = open('p.txt','w',encoding='utf-8') | |
file.write(response['hitokoto']+"\n"+response['from_who']+" 《"+response['from']+"》") | |
file.close() | |
print(response) | |
time.sleep(30) |
I hereby claim:
To claim this, I am signing this object:
const html404 = `<!DOCTYPE html> | |
<body> | |
<h1>404 Not Found.</h1> | |
<p>The url you visit is not found.</p> | |
</body>`; | |
const KEY = "ccccccvbddhvfhcldgvvjlcefnbihdngnfjhdbjekuic" | |
async function randomString(len) { | |
len = len || 32; |
<?php | |
/** | |
* @package Hello_Hitokoto | |
* @version 1.0.1 | |
*/ | |
/* | |
Plugin Name: Hello Hitokoto | |
Plugin URI: https://gist.github.com/TennousuAthena/96bb33fedbd979ed64fb167d5c60d0c3 | |
Description: 在管理界面添加一言 | |
Author: TennousuAthena |
<?php | |
// main function, called by SCF | |
// 主函数,调用的入口 | |
function main_handler($event, $context) { | |
// print parameters | |
// 进门打印传入参数是好习惯 | |
echo 'event:'.json_encode($event, JSON_PRETTY_PRINT).' | |
context:'.json_encode($context, JSON_PRETTY_PRINT); | |
// echo $event->{'headers'}->{'host'} ; // parameter is object. 传入的参数是object |
q={};location.search.replace(/([^?&=]+)=([^&]+)/g,(_,k,v)=>q[k]=v);q; | |
//Done! |
const fs = require('fs') | |
const path = require('path') | |
const base64 = v => Buffer.from(v).toString('base64') | |
const work = map => { | |
let base64Map = map.map(base64) | |
let here = path.join(...map) | |
let there = path.join(...base64Map) |