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
| module.exports = { | |
| parser: "babel-eslint", | |
| extends: [ | |
| "airbnb-base", | |
| "airbnb-base/rules/strict", | |
| "airbnb/rules/react", | |
| "prettier", | |
| "prettier/react" | |
| ], | |
| plugins: ["react", "prettier", "import"], |
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
| class MyEvents { | |
| constructor () { | |
| this.events = {} //存储事件监听函数 | |
| this.maxListeners = 10 //一种函数类型,最大监听函数数量 | |
| } | |
| setMaxListeners (maxNum) { | |
| this.maxListeners = maxNum | |
| } | |
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
| const capitalizeFirstLetter = s => { | |
| const type = typeof s; | |
| if (type !== 'string') { | |
| throw new Error(`Expected string, instead received ${type}`); | |
| } | |
| const [firstChar, ...remainingChars] = s; | |
| return [firstChar.toUpperCase(), ...remainingChars].join(''); | |
| }; |
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
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| # Thumbnails | |
| ._* | |
| # Files that might appear in the root of a volume | |
| .DocumentRevisions-V100 |
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
| # Rime default settings | |
| # encoding: utf-8 | |
| config_version: "0.36" | |
| schema_list: | |
| - schema: luna_pinyin | |
| - schema: cangjie5 | |
| - schema: luna_pinyin_fluency | |
| - schema: luna_pinyin_simp |
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
| 'use strict'; | |
| module.exports = { | |
| types: [ | |
| { | |
| value: 'WIP', | |
| name : '💪 WIP: Work in progress' | |
| }, | |
| { |
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
| { | |
| "config": { | |
| "commitizen": { | |
| "path": "node_modules/cz-emoji" | |
| }, | |
| "cz-emoji": { | |
| "types": [ | |
| { | |
| "emoji": "🔩", | |
| "code": "chore :nut_and_bolt:", |
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
| { | |
| "Working Directory" : "\/Users\/leohxj", | |
| "Prompt Before Closing 2" : 0, | |
| "Selected Text Color" : { | |
| "Green Component" : 0, | |
| "Blue Component" : 0, | |
| "Red Component" : 0 | |
| }, | |
| "Rows" : 30, | |
| "Ansi 11 Color" : { |
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
| corsFunc(params) { | |
| const headers = new Headers({ | |
| 'Content-Type': 'application/json', | |
| Accept: 'application/json', | |
| }); | |
| return fetch('xxxxxx', { | |
| method: 'post', | |
| headers, | |
| mode: 'cors', |
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
| // Zepto CORS | |
| $.ajax({ | |
| type: "get", | |
| url: url, | |
| data: data, | |
| xhrFields: { | |
| withCredentials: true | |
| }, | |
| crossDomain: true, | |
| beforeSend: function() { |