Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
Rick Moen, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.21更新的原文修订版3.10。
特别感谢王刚,此前本文的翻译是由他进行的。
export http_proxy="http://127.0.0.1:1080" | |
export https_proxy="http://127.0.0.1:1080" |
docker run --name amor-nginx -d -p 80:80 nginx |
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
func ConvertNumToCn(num int) string { | |
strnum := strconv.Itoa(num) | |
chineseDigits := []string{"", "一", "二", "三", "四", "五", "六", "七", "八", "九"} |
Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
Rick Moen, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.21更新的原文修订版3.10。
特别感谢王刚,此前本文的翻译是由他进行的。
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
Option Explicit | |
Sub UnProtectAllDocFiles() | |
On Error Resume Next | |
Const strRootPath = "F:\doc" ' 存放文档的目录 | |
Const strPassword = "0216" ' 密码 | |
Dim oDoc As Document |
// 客户端实现 | |
const net = require('net') | |
const tls = require('tls') | |
const localServer = new net.Server() | |
localServer.on('connection', (socket) => { | |
socket.pause() | |
const context = { |
alias setproxy="export http_proxy=http://127.0.0.1:1080 && export https_proxy=http://127.0.0.1:1080 && curl -i http://ip.cn" | |
alias unsetproxy="unset http_proxy && unset https_proxy && curl -i http://ip.cn" |
note_path='/Volumes/Kindle/documents/My Clippings.txt' | |
f=open(note_path,'r+') | |
digest_path='/Users/amor/Documents/' | |
while True: | |
onenote=[] | |
for i in range(0,5): | |
line=f.readline() | |
if not line: | |
exit() | |
onenote.append(line) |
const getWindowPosition = () => { | |
const windowBounds = window.getBounds() | |
const trayBounds = tray.getBounds() | |
// Center window horizontally below the tray icon | |
const x = Math.round(trayBounds.x + (trayBounds.width / 2) - (windowBounds.width / 2)) | |
// Position window 4 pixels vertically below the tray icon | |
const y = Math.round(trayBounds.y + trayBounds.height + 4) |