/assets/avatar.png
Live Long and Prosper 🖖

在 Vue.js 项目中使用 Font awesome pro 6

一、use a package manager

https://fontawesome.com/v6.0/docs/web/setup/packages

1. Config Access

Keep It Secret, Keep It Safe!

Your super-secret npm token - HIDDENTOKEN - is private. Don’t share it with anyone who shouldn’t have it. (You can find it in your account.)

Set up npm token for All projects

1
2
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
npm config set "//npm.fontawesome.com/:_authToken" HIDDENTOKEN

2. install Your package

The pro Package

1
2
3
npm install --save @fortawesome/fontawesome-pro@next

yarn add @fortawesome/fontawesome-pro@next

The free Package

英语翻译中常用的十种技巧大盘点

[TOC]

英汉两种语言在句法、词汇、修辞等方面均存在着很大的差异,因此在进行英汉互译时必然会遇到很多困难,需要有一定的翻译技巧作指导。下面,小编就为大家介绍一下英语翻译中常用的十大技巧,以供大家参考学习。

数据表格最佳实践:对齐

数据表格最佳实践:对齐

[TOC]

缘起

LP 美图晋升答辩,偶尔提起这问题,被领导问到,没清楚如何回答。 后领导提及数据右对齐源于算盘。

而据我所知应是会计学的计算需求,主要考虑计算方便和对位问题,深度根源并不十分清楚。只有处理数据对齐的方法论罢了。

Custom Alfred iTerm script

AppleScript for iTerm2 Alfred integration

https://github.com/vitorgalvao/custom-alfred-iterm-scripts#copy-the-script

  1. Copy the script to your clipboard.
  2. Open Alfred Preferences (call Alfred and press ⌘,).
  3. Navigate to Features → Terminal → Custom.
  4. Set Application to Custom.
  5. Select the text in the box.
  6. Paste.
  7. Optionally, change the script’s behaviour by changing the property lines at the top.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
-- For the latest version:
-- https://github.com/vitorgalvao/custom-alfred-iterm-scripts

-- Set this property to true to always open in a new window
property open_in_new_window : false

-- Handlers
on new_window()
	tell application "iTerm" to create window with default profile
end new_window

on new_tab()
	tell application "iTerm" to tell the first window to create tab with default profile
end new_tab

on call_forward()
	tell application "iTerm" to activate
end call_forward

on is_running()
	application "iTerm" is running
end is_running

on has_windows()
	if not is_running() then return false
	if windows of application "iTerm" is {} then return false
	true
end has_windows

on send_text(custom_text)
	tell application "iTerm" to tell the first window to tell current session to write text custom_text
end send_text

-- Main
on alfred_script(query)
	if has_windows() then
		if open_in_new_window then
			new_window()
		else
			new_tab()
		end if
	else
		-- If iTerm is not running and we tell it to create a new window, we get two
		-- One from opening the application, and the other from the command
		if is_running() then
			new_window()
		else
			call_forward()
		end if
	end if

	-- Make sure a window exists before we continue, or the write may fail
	repeat until has_windows()
		delay 0.01
	end repeat

	send_text(query)
	call_forward()
end alfred_script

hexo 转移至 hugo

回归初心,专注内容, hexo 越来越多的为本身的系统去折腾(太成熟的 theme 和多如牛毛的配置。烦人的 node 依赖),速度也实在是慢。

这个 hugo theme 倒是简单,纯粹。 阅读体验也不错。

书法约言

作者:宋曹

一、总论

  学书之法,在乎一心,心能转腕,手能转笔。大要执笔欲紧,运笔欲活,手不主运而以腕运,腕虽主运而以心运。右军曰:『意在笔先』。此法言也。古人下笔有由,从不虚发;今人好溺偏固,任笔为体,恣意挥运,以少知而自炫新奇,以意足而不顾颠错,究于古人妙境,茫无体认,又安望其升晋魏之堂乎!