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
| ## 外文翻译原则 | |
| 以下原则主要依据中国国家标准(如 GB/T 19682-2005《翻译服务译文质量要求》、GB/T 20000.10-2016 等)以及科技术语专家(如冯志伟)的权威论述,并结合技术文档本地化与中文技术写作实践中已形成的共识原则。每条均经过复核:落实与否会直接改变术语选择、句式结构、信息完整度或读者可执行性,从而影响最终译文结果。 | |
| ### 核心权威原则(直接源自国家标准与权威文献) | |
| 1. **忠实准确(忠实原文)** | |
| 完整、准确地传达原文技术信息,无核心语义差错,不误译、不漏译、不任意增译。 | |
| (GB/T 19682-2005 基本要求;技术标准外文版翻译研究中的“忠实准确”原则) |
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
| 生成一张用于企业级云服务 / SaaS 官网首页功能卡片的技术插图。 | |
| 【主题】 | |
| [主题描述或附件内容] | |
| 【核心技术关系,可选】 | |
| [希望重点表达的技术关系;留空时根据主题提炼] | |
| 【优先场景,可选】 | |
| [希望采用的具体应用场景;留空时根据主题选择最容易用图形表达的场景] |
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 babel = require('@babel/core'); | |
| const t = require('@babel/types'); | |
| const sampleCode = `\ | |
| import {uniq, extend, flatten, cloneDeep } from "lodash"; | |
| export default function Test() { | |
| return ( | |
| <Sky.Card> | |
| Test | |
| <Wind.Button type="primary" loading>{intl('sas.baseline.inDetection')}</Wind.Button> |
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 getUUID() { | |
| const canvas = document.createElement('canvas'); | |
| const ctx = canvas.getContext('2d'); | |
| ctx.fillStyle = '#ff0000'; | |
| ctx.fillRect(0,0,8,10); | |
| const b64 = canvas.toDataURL().replace('data:image/png;base64,', ''); | |
| const bin = window.atob(b64); | |
| return bin2hex(bin.slice(-16, -12)); | |
| } |
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 mergeText = (str, text) => { | |
| if (str === '') { | |
| return text; | |
| } | |
| if (!text || text === ' ' || str === text) { | |
| return str; | |
| } | |
| str = str.replace(/\s+/g, ' ') | |
| .replace(/\t|\r|\n/g, ''); |
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
| // pug | |
| div.menu | |
| ul | |
| each v in [1,2,3,4,5,6,7,8] | |
| li | |
| a( href='#' )= v | |
| // css | |
| @mixin circle-layout($radius, $dot-radius, $num) { | |
| $deg: 360deg / $num; |
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
| /** | |
| * r: circle -> r, ellipse -> rx, ry | |
| */ | |
| export const getCenterPoint = (x, y, r) => (r.rx ? { | |
| x: x + r.rx, | |
| y: y + r.ry, | |
| rx: r.rx, | |
| ry: r.ry, | |
| } : { | |
| x: x + r, |
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
| package.json | |
| { | |
| "devDependencies": { | |
| "autoprefixer": "^7.2.5", | |
| "babel-preset-env": "^1.6.1", | |
| "node-sass": "^4.7.2", | |
| "postcss-inline-svg": "^3.0.0", | |
| "postcss-write-svg": "^3.0.1" | |
| }, | |
| "dependencies": { |
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
| body { background: #333;} | |
| a { | |
| display: inline-block; | |
| } | |
| a img{ | |
| position: relative; | |
| z-index: -1; | |
| } |
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
| "scripts": { | |
| "build": "webpack --progress --profile --colors", | |
| "build-watch": "webpack --progress --profile --colors --watch", | |
| "dev": "webpack-dev-server --devtool eval --progress --colors --hot --content-base demo", | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| } |
NewerOlder