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
// save_build.prod.js | |
// @format | |
const util = require('util'); | |
const exec = util.promisify(require('child_process').exec); | |
async function getCommitMessage() { | |
const { stdout } = await exec( | |
'echo $(git log -1 --pretty="%B") | tr -d "\n"' | |
); | |
return stdout; |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"allowJs": true, | |
"target": "es2015", | |
"baseUrl": "./src", | |
"outDir": "./build", | |
"jsx": "react", | |
"moduleResolution": "node", | |
"suppressImplicitAnyIndexErrors": true, | |
"allowSyntheticDefaultImports": true |
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
### java -jar | |
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.jar | |
### Maven | |
Debug Spring Boot app with Maven: | |
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001" |
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
.trusteeship-form { | |
$labelWidth: 8em; | |
display: flex; | |
flex-wrap: wrap; | |
.suffix-text { | |
color: #666; | |
position: relative; | |
left: -2em; | |
} |
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
da< (or) da( (or) da{ // delete the block including <,(,{ and >,),} rsply | |
di< (or) di( (or) di{ // simillarly, but excluing <,(,{ and >,),} rsply | |
yi< (or) yi( (or) yi{ // yanks simillarly. Simillarly for ciw, viw, etc | |
df<Space> // delete from current char including the next space | |
daw // delete current word including the next space | |
diq // delete current word excluding the next space | |
yiw // yank current word excluding the next space | |
yaw // yank current word including the next space |
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
// @format | |
const util = require('util'); | |
const exec = util.promisify(require('child_process').exec); | |
async function getCommitMessage() { | |
const {stdout} = await exec('echo $(git log -1 --pretty="%B") | tr -d "\n"'); | |
return stdout; | |
} | |
async function getAuthor() { |
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 React, { Component, Fragment } from 'react'; | |
import './FeeForm.scss'; | |
import { Viewport, PickerField, DatetimeField, InputField } from 'components'; | |
import { moneyType as moneyTypeEnum } from 'src/enums'; | |
import { utils, feedback } from 'src/lib'; | |
import { Button } from 'saltui'; | |
import { fee, dingtalk } from 'src/store'; | |
import { observer } from 'mobx-react'; | |
import { isObject } from 'lodash'; |
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 React, { Component } from 'react'; | |
import './ContractUploader.scss'; | |
import { Viewport, FormButton, NoContext } from 'components'; | |
import { debug, getUserId, feedback } from 'src/lib'; | |
import * as formAPI from 'src/xhr/form'; | |
import { workflow } from 'src/store'; | |
import LineUploader from '../components/LineUploader'; | |
export class ContractUploader extends Component { | |
state = { |
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 Site(host, loginUrl, jqEls) { | |
this.host = host; | |
this.loginUrl = loginUrl; | |
this.usernameEl = jqEls.usernameEl; | |
this.passwordEl = jqEls.passwordEl; | |
this.captchaEl = jqEls.captchaEl; | |
this.buttonEl = jqEls.buttonEl; | |
} |
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 axios = require('axios'); | |
const $ = require('cheerio'); | |
async function visitHome() { | |
const res = await axios.get('https://nj.ishangzu.com/zufang/'); | |
const hrefArr = Array.from( | |
$('.term-list', res.data) | |
.eq(1) | |
.find('a') | |
) |