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
| - DEPLOYMENT_URL=$(vercel deploy --prod $(grep -v '^#' .env.production | sed 's/^/--build-env /' | tr '\n' ' ')) |
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
| /* eslint no-console:0 */ | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import Upload from 'rc-upload'; | |
| import axios from 'axios'; | |
| const uploadProps = { | |
| action: '/upload.do', | |
| multiple: false, | |
| data: { a: 1, b: 2 }, |
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 obj={ | |
| a: 1, | |
| get then(){ | |
| if(this.a == 1){ | |
| this.a++; | |
| return function (){} | |
| }else{ | |
| throw new Error('error') | |
| } | |
| } |
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 fs = require("fs"); | |
| function promisify(fn) { | |
| return function (...arg) { | |
| return new Promise((resolve, reject) => { | |
| fn(...arg, function (err, data) { | |
| if (err) reject(err); | |
| resolve(data); | |
| }); | |
| }); | |
| }; |
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
| let _ = {}; | |
| function curry(fn, args) { | |
| var length = fn.length; | |
| args = args || []; | |
| return function () { | |
| var _args = args.slice(0), | |
| arg, | |
| i; | |
| _args.forEach((item, index, arr) => { | |
| if (item == _ && arguments.length > 0) { |
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
| function Fn{} | |
| const fn = new Fn() |