- 初步筛选出面试者,不用来一遍公司才发现不合适,节省面试者的时间。
- 现场作答,由于面试者没带电脑,不方便作答,没法体现自己的能力。
- 通过回答了的题目,提前判断出面试者的水平,节省面试的时间。
- 让面试者充分准备。
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 './global'; | |
import debugAdd, { globalAdd } from './debug'; | |
App({ | |
// ........ 一大堆的东西 | |
}); | |
const app = getApp(); | |
debugAdd('app', app); // 直接控制台 console 那边 debugAddSave.app 查看内存 |
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
/* dateStr 的格式为'2018-11-25 16:14:24' */ | |
function getDateDiff(dateStr) { | |
var publishTime = getDateTimeStamp(dateStr) / 1000, | |
d_seconds, | |
d_minutes, | |
d_hours, | |
d_days, | |
timeNow = parseInt(new Date().getTime() / 1000), | |
d, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<body> | |
<style> | |
.percentage-box { | |
box-sizing: border-box; | |
width: 210px; | |
height: 210px; | |
position: relative; | |
background-color: #ff6e00; |
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
// 文件名应该是 object_each.wxs , github 上没法识别,所以直接用 js 后缀,如果name 中含有 " 引号,那就洗洗睡吧,不适合这样的业务。 | |
// 匹配 key 的 regex | |
var keyRe = getRegExp('"[^"]+":', 'img'); | |
// 匹配 name 替换的 regex | |
var replaceRe = getRegExp('[":]', 'img'); | |
var objectEntries = function (target) { | |
var entries = []; | |
var targetString = JSON.stringify(target); |
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 onDownload = (link) => { | |
const tempLink = document.createElement('a'); | |
tempLink.href = link; | |
tempLink.setAttribute('download', 'img.png'); | |
tempLink.setAttribute('target', '_blank'); | |
document.body.appendChild(tempLink); | |
setTimeout(() => { | |
tempLink.setAttribute('download', 'qrcode.png'); | |
tempLink.click(); | |
document.body.removeChild(tempLink); |
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/bash | |
# Check if user is root | |
if [ $(id -u) != "0" ]; then | |
printf "Error: You must be root to run this script!\n" | |
exit 1 | |
fi | |
echo "=========================================================================\n" | |
printf "Auto install net-speeder on your vps,written by tennfy \n" | |
printf "Version 0.1 \n" |