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 npm-top-version-list | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author wungcq | |
// @match https://www.npmjs.com/package/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=npmjs.com | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.7.0.slim.min.js |
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 LootRare | |
// @namespace http://tampermonkey.net/ | |
// @version 0.40 | |
// @description Help you choose Loot Bag | |
// @author dashuo | |
// @match https://opensea.io/collection/lootproject | |
// @match https://opensea.io/assets/lootproject?* | |
// @match https://opensea.io/collection/lootproject?* | |
// @icon https://www.google.com/s2/favicons?domain=opensea.io |
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 { Configuration as IWbpkConf } from "webpack"; | |
import WebpackChain from "webpack-chain"; | |
import { TransformOptions } from "babel-core"; | |
import { Linter } from "eslint"; | |
import ts from "typescript"; | |
export interface IVueCliConfig { | |
baseUrl?: string; | |
publicPath?: string; | |
outputDir?: string; |
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
npm set registry https://registry.npm.taobao.org # 注册模块镜像 | |
npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 | |
## 以下选择添加 | |
npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 | |
npm set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像 | |
npm set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer 二进制包镜像 | |
npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像 | |
npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像 | |
npm set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs # phantomjs 二进制包镜像 |
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
<script> | |
(function(){ | |
function getQuery(r){var n=r||window.location.search;try{return(n?n.slice(1).split("&"):[]).reduce(function(r,n){var t=n.split("=");return r[t[0]||""]=t[1]||"",r},{})}catch(r){return{}}} | |
function stringifyQuery(r){var n=[];for(var t in r)n.push(t+"="+r[t]);return"?"+n.join("&")} | |
!function(){var o=getQuery(),n=Math.floor(Date.now()/12e4);if(o.tpv!=n){o.tpv=n;var i=window.location.origin+window.location.pathname+stringifyQuery(o)+window.location.hash;window.location.href=i}}(); | |
})(); | |
</script> |
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
/* | |
when querying attributes using alias like: | |
attributes: [['m','n']] // to show m as n | |
sequelize will wrap the field word width '`' | |
the query will looks like `m` AS `n` | |
this seems simple; | |
but when query JSON fields: | |
//my data column: data, value: {name:'wungcq'} | |
attributes: ["data->'$.name'","name"] |
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
export function resetVH(){ | |
const vh100 = window.innerHeight; | |
const styleContent = ` | |
.vh-100 { | |
height: ${vh100}px; | |
} | |
`; | |
const node = document.createElement('style'); | |
node.type = 'text/css'; | |
node.innerHTML = styleContent; |
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 Axios from 'axios'; | |
import { | |
isArray | |
} from 'lodash'; | |
import qs from 'qs'; | |
const CGI_SERVER = process.env.CGI_SERVER; | |
export const cgiServerPath = () => CGI_SERVER; | |
const postConfig = { | |
method: 'POST', |
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
/// <reference types="react" /> | |
import React from 'react'; | |
import { AbstractInputProps } from './Input'; | |
export interface AutoSizeType { | |
minRows?: number; | |
maxRows?: number; | |
} | |
export interface TextAreaProps extends AbstractInputProps { | |
autosize?: boolean | AutoSizeType; | |
onPressEnter?: React.FormEventHandler<any>; |
NewerOlder