Skip to content

Instantly share code, notes, and snippets.

View crapthings's full-sized avatar
😎
🇰🇵我们晚上去

crapthings crapthings

😎
🇰🇵我们晚上去
View GitHub Profile
@crapthings
crapthings / engine-adapter.js
Last active February 21, 2024 08:34
web-adapter.js
! function i(a, o, r) {
function c(t, e) {
if (!o[t]) {
if (!a[t]) {
var n = "function" == typeof require && require;
if (!e && n) return n(t, !0);
if (s) return s(t, !0);
throw (e = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND", e
}
n = o[t] = {
#
思考框架文档
问题:_________________________
1. 定义问题:
在这一部分,我们将明确问题的核心,并确保对问题有一个清晰明确的理解。
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
  • 暂不介绍后端渲染 ssr

  • 不介绍 react 早期 类写法

class Something extends React.Component {
  constructor () {

  }
@crapthings
crapthings / docker-compose.yml
Last active November 20, 2022 12:31
docker-compose rs init
version: '3'
services:
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo
restart: always
expose:
- 27017
ports:
import { useEffect, useRef } from 'react'
export default function Ani ({ parentContainerRef, className }) {
const canvasRef = useRef()
useEffect(() => {
const parentContainer = parentContainerRef?.current
if (!parentContainer) return
@crapthings
crapthings / Preferences.sublime-settings
Last active July 29, 2022 02:37
sublime text 4 settings
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"font_face": "Fira Code",
"font_size": 16,
"font_options": [
"subpixel_antialias",
// "gray_antialias"
],
"tab_size": 2,
This file has been truncated, but you can view the full file.
#define
#endif
#if
#ifdef
#ifndef
#import
#include
#pragma
%d
++i
@crapthings
crapthings / rust-note.md
Created April 29, 2022 06:36
RUST 学习笔记
module.exports = [
{
"x":1,
"y":7,
"d":7
},
{
"x":2,
"y":8,
"d":7