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 { useCallback, useEffect, useState } from 'react' | |
| type ServiceType<T> = () => Promise<T> | |
| interface ReturnType<T> { | |
| useData: () => T | |
| clearData: () => void | |
| setData: (data: T) => void | |
| } |
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 { createFromIconfontCN } from '@ant-design/icons' | |
| import { IconBaseProps } from '@ant-design/icons/lib/components/Icon' | |
| // eslint-disable-next-line | |
| type FontIconType = <%- fontIconTypes %> | |
| interface FontIconProps extends Omit<IconBaseProps, 'type'> { | |
| type: FontIconType | |
| } |
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, { CSSProperties } from 'react' | |
| import classNames from 'classnames' | |
| import { group } from '@/utils/utils' | |
| import { ScreenMap } from '@/utils/responsiveObserve' | |
| import { isNumber, isNull, isString } from '@/utils/types' | |
| import useBreakpoint from '@/components/hooks/useBreakpoint' | |
| type PropertyType = number | string | |
| interface Size { |
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, { useState, CSSProperties } from 'react' | |
| import ReactResizeDetector from 'react-resize-detector' | |
| import classNames from 'classnames' | |
| import { group } from '@/utils/utils' | |
| import { ScreenMap } from '@/utils/responsiveObserve' | |
| import { isNumber, isNull } from '@/utils/types' | |
| import useBreakpoint from '@/components/hooks/useBreakpoint' | |
| type PropertyType = number |
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, { ReactElement } from 'react' | |
| import { isFunction } from '@/utils/utils' | |
| import PageLoading from '../PageLoading' | |
| import DefaultError from '../DefaultError' | |
| type RenderFunction = () => React.ReactElement | |
| type BooleanFunction = () => boolean | |
| interface PreProcessorProps { | |
| error?: boolean | BooleanFunction |
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
| #include <GUIConstants.au3> | |
| Func macro_fullscreen() | |
| ; Make the active window fullscreen. | |
| Const $GWL_STYLE = -16 | |
| Const $GWL_EXSTYLE = -16 | |
| Const $SWP_NOMOVE = 0x0002 | |
| Const $SWP_NOSIZE = 0x0001 | |
| Const $SWP_NOZORDER = 0x0004 | |
| Const $SWP_FRAMECHANGED = 0x0020 | |
| $hwnd = WinGetHandle("", "") |
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 java.util.ArrayList; | |
| import java.util.List; | |
| /** | |
| * 坐标转换工具类 | |
| * WGS84坐标系:即地球坐标系,国际上通用的坐标系。Earth | |
| * GCJ02坐标系:即火星坐标系,WGS84坐标系经加密后的坐标系。Mars | |
| * BD09坐标系:即百度坐标系,GCJ02坐标系经加密后的坐标系。 Bd09 | |
| * | |
| * ********************************** |
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
| var w = $("#code").width(); | |
| var h = $("#code").height(); | |
| //要将 canvas 的宽高设置成容器宽高的 2 倍 | |
| var canvas = document.createElement("canvas"); | |
| canvas.width = w * 2; | |
| canvas.height = h * 2; | |
| canvas.style.width = w + "px"; | |
| canvas.style.height = h + "px"; | |
| var context = canvas.getContext("2d"); |
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
| strict-ssl false | |
| registry https://registry.npm.taobao.org |
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
| [user] | |
| name = gabel | |
| email = popo1221@outlook.com | |
| [color] | |
| branch = auto | |
| diff = auto | |
| interactive = auto | |
| pager = true | |
| status = auto | |
| ui = true |