Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
Rick Moen, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.21更新的原文修订版3.10。
特别感谢王刚,此前本文的翻译是由他进行的。
# Use the official lightweight Node.js lts image. | |
# https://hub.docker.com/_/node | |
FROM node:lts-alpine AS build | |
# Create and change to the app directory. | |
WORKDIR /usr/src/app | |
# Copy application dependency manifests to the container image. | |
# A wildcard is used to ensure copying both package.json AND package-lock.json (when available). |
apt-get install -y -q xvfb libgtk2.0-0 libxtst6 libxss1 libgconf-2-4 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0 |
async function _getCgiData() { | |
return new Promise(resolve => { | |
setTimeout(() => { | |
resolve('cgi data') | |
}, 5000); | |
}) | |
} | |
let isGetting = false; |
find . -type f ! -name '*.icloud' ! -name '.DS_Store' -exec brctl evict {} \; |
# coding=utf-8 | |
import numpy as np | |
x = range(2009, 2019) # 年份 | |
y = [0.5, 9.36, 52, 191, 350, 571, 912, 1207, 1682, 2135] # 2009到2018年的交易额 | |
fittedPara = np.polyfit(x, y, 3) # 进行3次方多项式拟合 | |
fx = np.poly1d(fittedPara) | |
Y = fx(range(2009, 2020)) # 用历年数据得出的拟合公式,预测2019年的交易额 |
const map = { | |
"(": 3n, | |
"[": 5n, | |
"{": 7n, | |
")": -3n, | |
"]": -5n, | |
"}": -7n | |
}; | |
var isValid = function(s) { |
require('colors'); | |
const jsdiff = require('diff') | |
const stringSimilarity = require('string-similarity'); | |
const text1 = ` | |
{ | |
"name": "calcit-editor", | |
"version": "0.3.50", | |
"description": "Cirru Calcit Editor", | |
"bin": { | |
"calcit-editor": "dist/server.js", |
while true | |
do | |
sleep 1 | |
wget -qO- http://107.170.206.53/hk1 | |
done |
function forceInterval(fn, time) { | |
var lastRunTime = new Date(); | |
return setInterval(function () { | |
var currentTime = new Date() | |
if ((new Date - lastRunTime) < time) { | |
fn(); | |
} else { | |
var count = ~~((new Date - lastRunTime) / time) | |
for (var i = 0; i < count; i++) { |
Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
Rick Moen, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.21更新的原文修订版3.10。
特别感谢王刚,此前本文的翻译是由他进行的。