This file contains hidden or 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
find . -type f | sed -e 's/.*\.//' | sed -e 's/.*\///' | sort | uniq -c | sort -rn |
This file contains hidden or 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
const WebSocket = require("ws"); | |
const os = require("os"); | |
const readline = require("readline"); | |
// 获取局域网地址 | |
function getLocalIPAddress() { | |
const interfaces = os.networkInterfaces(); | |
for (let iface of Object.values(interfaces)) { | |
for (let alias of iface) { | |
if (alias.family === "IPv4" && !alias.internal) { |
This file contains hidden or 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 React, {useEffect, useRef} from 'react'; | |
import {SafeAreaView, Text, View} from 'react-native'; | |
import {Colors} from 'react-native/Libraries/NewAppScreen'; | |
const url = 'ws://192.168.40.241:8080'; | |
function App(): React.JSX.Element { | |
const ws = useRef<WebSocket>(); | |
const [wsMessage, setWsMessage] = React.useState(''); |
This file contains hidden or 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
// ==UserScript== | |
// @name Chat Mfweb Beautify | |
// @namespace https://gist.github.com/Nyaasu66/9cfffb9431b4e5440f4b92a0ae9ef4bd | |
// @version 0.1.3 | |
// @description awa | |
// @author Nyaasu66 | |
// @match https://chat.mfweb.top/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=mfweb.top | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>My battery level</title> | |
</head> | |
<body> | |
<div id="battery"> | |
<div id="level"> |