This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup lang="ts"> | |
import { onMounted, ref, watch, toRaw, computed, defineComponent, h, Ref } from 'vue' | |
import type { PropType } from 'vue' | |
import "vditor/dist/index.css" | |
import Vditor from "vditor" | |
const simpleConfig = [ | |
'emoji', | |
'headings', | |
'bold', | |
'italic', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'http'; | |
const sourceHost = 'localhost' | |
const sourcePort = 3001 | |
const sourceURL = `${sourceHost}:${sourcePort}` | |
const proxyHost = 'localhost' | |
const proxyPort = 3008 | |
const proxyURL = `${proxyHost}:${proxyPort}` | |
let server = http.createServer((req, res) => { | |
console.log(req.url) | |
// 从3001端口获取数据 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEngine; | |
public class PackageImporter | |
{ | |
public static async Task ImportPackageAsync(string packagePath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ghp_Cnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnm" -H "Content-Length: 0" -X PUT https://api.github.com/orgs/EpicGames/public_members/Sonic853 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 使用异步获取Canvas的Blob | |
* @param {string} type | |
* @param {Number} quality | |
* @returns {Promise<Blob>} | |
*/ | |
HTMLCanvasElement.prototype.toBlobAsync = async function (type, quality) { | |
return new Promise((resolve, reject) => { | |
this.toBlob(blob => { | |
resolve(blob) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
# 2019-05-18 UPDATE — Created by @19WAS85 and and evalued by @jakobii and the comunity. | |
# 2021-01-05 UPDATE — Edited by @Sonic853. | |
param( | |
$ip = "localhost", | |
$Port = 8080, | |
$parentPath = [IO.Path]::Combine([IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path), "web") | |
) | |
# Http Server | |
$http = [System.Net.HttpListener]::new() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
//双向链表结点类,采用泛型 | |
public class Node<T> | |
{ | |
private T data; //数据域,当前结点的数据 | |
private Node<T> prev; //引用域,即上一结点 | |
private Node<T> next; //引用域,即下一结点 | |
//构造器:数据域+引用域,普通结点 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="css/style.css"> | |
<script></script> | |
</head> | |
<body> | |
I hereby claim:
- I am Sonic853 on github.
- I am sonic853 (https://keybase.io/sonic853) on keybase.
- I have a public key whose fingerprint is 7464 A375 7B18 7161 E950 1B6A CA77 F84E 3ECA 6CCF
To claim this, I am signing this object:
NewerOlder