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. 定义问题:
在这一部分,我们将明确问题的核心,并确保对问题有一个清晰明确的理解。
  • 暂不介绍后端渲染 ssr

  • 不介绍 react 早期 类写法

class Something extends React.Component {
  constructor () {

  }
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,
@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
@crapthings
crapthings / gist:59e3d0cc415c02d7afede490b160c2b6
Last active August 26, 2020 02:11
android oppo 推送相关

https://blog.csdn.net/zhongshanyishi/article/details/80619101

if (action.equals("openNotificationSettings")) {
            cordova.getActivity().runOnUiThread(new Runnable() {
                @Override
                public void run () {
                    Context context = cordova.getActivity().getApplicationContext();
                    Intent intent = new Intent();
 intent.setAction(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
package cn.hhjjj.mobpush;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.provider.Settings;
@crapthings
crapthings / Ontology.md
Last active August 23, 2020 04:37
semantic web best answer