gihnius 最近的时间轴更新
gihnius

gihnius

V2EX 第 44820 号会员,加入于 2013-09-02 19:05:56 +08:00
根据 gihnius 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
gihnius 最近回复了
Ruby:

a.product(b)
2018-04-01 11:41:11 +08:00
回复了 molvqingtai 创建的主题 macOS MAC 用户谨慎升级 10.13.4 !!!
从 10.13.3 顺利升级,没啥毛病。
2018-03-21 13:24:30 +08:00
回复了 0xABCD 创建的主题 Python 撸了个年度进度条提示工具
@gihnius 继续玩:

Go 版加了:

■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□ 22%(80/365)
2018-03-21 12:50:52 +08:00
回复了 0xABCD 创建的主题 Python 撸了个年度进度条提示工具
2018-03-21 11:51:22 +08:00
回复了 0xABCD 创建的主题 Python 撸了个年度进度条提示工具
@0xABCD Go 版运行快很多。。。
2018-03-21 09:31:20 +08:00
回复了 0xABCD 创建的主题 Python 撸了个年度进度条提示工具
再写个 Go 的:
package main

import (
"fmt"
"math"
"strings"
"time"
)

func main() {
now := time.Now()
passed := now.YearDay()
format := "2006-01-02 15:04:05"
end, _ := time.Parse(format, fmt.Sprintf("%d-12-31 23:59:59", now.Year()))
total := end.YearDay()
progress := math.Round((float64(passed) / float64(total)) * 100)
bar := strings.Repeat("▓", int(progress)) + strings.Repeat("░", (100-int(progress)))
fmt.Printf("Progress of this year %d of %d:\n", passed, total)
fmt.Println(bar)
}

感觉够折腾的。。。。。
2018-03-21 08:42:53 +08:00
回复了 0xABCD 创建的主题 Python 撸了个年度进度条提示工具
写个 Ruby 的玩玩:
percent = ((Time.now.yday.to_f / Time.now.at_end_of_year.yday) * 100).round
bar = '▓' * percent + '░' * (100 - percent)
puts "Progress of this year:"
puts(bar + percent.to_s + '%')

输出:
Progress of this year:
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░22%
2018-03-17 19:25:07 +08:00
回复了 walktewy 创建的主题 问与答 Golang App 后端 推荐一个比较好的 web 框架?
gin
2018-03-06 10:23:53 +08:00
回复了 mengxh1990 创建的主题 程序员 怎么用英文描述两个模型之间的依赖和被依赖关系?
A has many b

B belongs to a

Ruby on Rails 那一套
2018-03-03 22:52:07 +08:00
回复了 kskdnda 创建的主题 iCloud 我好像发现 icloud 速度的秘密了,有兴趣的朋友可以试试
这不就是 AppleDNS 的目的,找到最近的自然快些。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5252 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 08:05 · PVG 16:05 · LAX 01:05 · JFK 04:05
Developed with CodeLauncher
♥ Do have faith in what you're doing.