V2EX gihnius
 gihnius's recent timeline updates
gihnius

gihnius

V2EX member #44820, joined on 2013-09-02 19:05:56 +08:00
Per gihnius's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
gihnius's recent replies
Ruby:

a.product(b)
Apr 1, 2018
Replied to a topic by molvqingtai macOS MAC 用户谨慎升级 10.13.4 !!!
从 10.13.3 顺利升级,没啥毛病。
Mar 21, 2018
Replied to a topic by 0xABCD Python 撸了个年度进度条提示工具
@gihnius 继续玩:

Go 版加了:

■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□ 22%(80/365)
Mar 21, 2018
Replied to a topic by 0xABCD Python 撸了个年度进度条提示工具
Mar 21, 2018
Replied to a topic by 0xABCD Python 撸了个年度进度条提示工具
@0xABCD Go 版运行快很多。。。
Mar 21, 2018
Replied to a topic by 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)
}

感觉够折腾的。。。。。
Mar 21, 2018
Replied to a topic by 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%
gin
A has many b

B belongs to a

Ruby on Rails 那一套
这不就是 AppleDNS 的目的,找到最近的自然快些。
About     Help     Advertise     Blog     API     FAQ     Solana     771 Online   Highest 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 12ms UTC 19:41 PVG 03:41 LAX 12:41 JFK 15:41
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86