这是一个测试
View toolbar.js
This file contains 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 agentView = NSStackView.alloc().init(); | |
const container = NSView.alloc().initWithFrame(NSMakeRect(0, 0, UI.TOOLBAR_DEFAULT_WIDTH, 400)); | |
container.identifier = pluginConstant.BAR_CONTAINER; | |
container.addSubview(agentView); | |
const viewsDictionary = { container, stack: agentView }; | |
const horizontalConstraints = NSLayoutConstraint.constraintsWithVisualFormat_options_metrics_views( | |
'H:|-0-[stack]-0-|', | |
0, | |
nil, |
View key.pub
This file contains 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBF6MTcYBEACk2Q+j0zJvzNYsxmkIMA5QzeFeHRxPRI/r1c9jjipJx/0O13JW | |
UItAQpAPYLcPTtq3lj0g6qjXrcHrnHsQ6rJDO92Fu124GVG47gxDY8FLQoY7Wgci | |
jZ9JwndFZIULpCLwDxqSFeAX12Zxx3a3SloBzfvLnYOKng/jqYfCMlfnW4T7Tbe3 | |
p/6zwHMdHPdTbCnz9OUk4YilHT4wJB6+8bfIQ0l2P5xd0ghrbovtWehKVGNiAenL | |
ptypjFC1RvRInvHYhWlFo5TOBHb3HufWM+JM8Oy34gIiaAbCkoq+LHQCUYVmIqed | |
okqLnFmn0yxKAQ75WnkvvCcOSsmF4ZHrEJcbbTLjnGkNh+PZ5iMkMF9UG++okzSc | |
Bkqh59wzW1rzsCvguHZkwFExk7oFnuvKPECmUWpAi3unOlUMLY5NsnpxS9y7H4aN | |
qxeeHVutM0SOHTpfPMFcpSOXwZ1RyQ6cRnxaR+6uEvopARHpMnHkRdwdCVDm7n8t |
View 📊 Weekly development breakdown
This file contains 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
JavaScript 9 hrs 11 mins ███████▉░░░░░░░░░░░░░ 38.0% | |
TypeScript 8 hrs 29 mins ███████▍░░░░░░░░░░░░░ 35.1% | |
JSON 2 hrs 41 mins ██▎░░░░░░░░░░░░░░░░░░ 11.2% | |
Other 1 hr 44 mins █▌░░░░░░░░░░░░░░░░░░░ 7.2% | |
Markdown 34 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.4% |
View useStore.js
This file contains 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
interface State { | |
list: Trade[]; | |
detail: Trade | null; | |
} | |
const initialState = { | |
list: [], | |
detail: null, | |
}; |
View bundle.js
This file contains 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
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; |
View result.md
Package | Star |
---|---|
styled-components | 9962 |
react-native-web | 6091 |
radium | 5636 |
react-css-modules | 4033 |
aphrodite | 3478 |
glamor | 2565 |
glamorous | 2381 |
styletron-react | 2132 |
View detect-port
This file contains 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
#!/bin/sh | |
port=$1 | |
pid=`lsof -i :${port} -P -t -sTCP:LISTEN` | |
dir=`lsof -p ${pid} | awk '$4=="cwd" {print $9}'` | |
cmd=`ps -o command -p ${pid} | sed -n 2p` | |
echo "${cmd} in ${dir}" |
View fixit.sh
This file contains 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
#!/bin/sh | |
COLOR_GREEN='\033[0;32m' | |
echo "${COLOR_GREEN}Remove node_modules." | |
rm -rf node_modules | |
echo "${COLOR_GREEN}Remove yarn.lock." | |
rm -f yarn.lock | |
if command -v ayarn > /dev/null 2>&1; then | |
echo "${COLOR_GREEN}Install node_modules use ayarn." |
View table-hover-edit.js
This file contains 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 { Table, Icon, Popover, Input } from 'antd'; | |
class EditableTable extends React.Component { | |
constructor(props) { | |
super(props); | |
this.columns = [{ | |
title: '应用名称', | |
dataIndex: 'appName', | |
key: 'appName', |
NewerOlder