{"id":43719,"date":"2016-10-14T20:13:11","date_gmt":"2016-10-14T11:13:11","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=43719"},"modified":"2016-10-14T20:13:11","modified_gmt":"2016-10-14T11:13:11","slug":"ding","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/ding\/","title":{"rendered":"Ding - Python\u3067\u4f5c\u3089\u308c\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30a4\u30e0\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30c4\u30fc\u30eb"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/10\/s_20161014_200119.jpg\" alt=\"S 20161014 200119\" title=\"s_20161014_200119.jpg\" border=\"0\" width=\"786\" height=\"517\" \/><\/p>\n<p>\u300c<span class=\"mybold\">$ sleep 4231; beep<\/span>\u300d\u3068\u6bce\u56de\u6253\u3061\u8fbc\u3080\u306e\u306b\u75b2\u308c\u305f\u4eba\u306f\u3044\u307e\u305b\u3093\u304b\uff1f\u305d\u306e\u3088\u3046\u306a\u65b9\u306fPython\u3067\u4f5c\u3089\u308c\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30a4\u30e0\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30c4\u30fc\u30eb\u300c<a href=\"https:\/\/github.com\/liviu-\/ding\">Ding<\/a>\u300d\u3092\u8a66\u3057\u3066\u307f\u308b\u3068\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u6642\u9593\u3092\u6307\u5b9a\u3057\u3066\u8d77\u52d5\u3059\u308b\u3068\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u304c\u59cb\u307e\u308a\u3001\u30bf\u30a4\u30e0\u30a2\u30c3\u30d7\u3092\u30b5\u30a6\u30f3\u30c9\u3067\u901a\u77e5\u3057\u3066\u304f\u308c\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>Python\u3067\u4f5c\u3089\u308c\u3066\u3044\u3066\u4ed6\u306b\u4f9d\u5b58\u30d5\u30a1\u30a4\u30eb\u306f\u306a\u304f\u3001Python2\u307e\u305f\u306fPython3\u3069\u3061\u3089\u3067\u3082\u52d5\u4f5c\u3057\u307e\u3059\u3002100\u884c\u307b\u3069\u306e\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u306e\u3067\u3001Linux\/macOS\/Windows\u306a\u3069\u3055\u307e\u3056\u307e\u74b0\u5883\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u5177\u4f53\u7684\u306a\u4f7f\u7528\u6cd5\u3092\u3054\u8aac\u660e\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306fpip\u3092\u4f7f\u7528\u3057\u3066\u884c\u3046\u306e\u304c\u7c21\u5358\u3067\u3059\u3002<\/p>\n<pre>\n$ pip install ding-ding\n<\/pre>\n<p>\u3082\u3057\u304f\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u305d\u306e\u3082\u306e\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>\n$ .\/ding.py in 1s\n<\/pre>\n<h2>\u5b9f\u884c\u65b9\u6cd5<\/h2>\n<p>\u4f8b\u3048\u307015\u5206\u5f8c\u306b\u901a\u77e5\u3057\u3066\u307b\u3057\u3044\u5834\u5408\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\n$ ding in 15m\n<\/pre>\n<p>\u6642\u523b\u6307\u5b9a\u306e\u901a\u77e5\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>\n$ ding at 16:45\n<\/pre>\n<p>\u30dd\u30e2\u30c9\u30fc\u30ed\u30c6\u30af\u30cb\u30c3\u30af\u7528\u306b25\u5206\u5f8c\u306b\u901a\u77e5\u3059\u308b\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\n$ alias pomo=\"ding in 25m\"\n$ pomo\n<\/pre>\n<p>\u6642\u523b\u306e\u6307\u5b9a\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<pre>\n# Relative time\n$ ding in 2m\n$ ding in 2h 15m\n$ ding in 2m 15s\n\n# Absolute time\n$ ding at 12\n$ ding at 17:30\n$ ding at 17:30:21\n\n# Custom command for beeping\n$ ding in 1s --command \"paplay --volume 15000 beep.wav\"\n\n# Hide timer\n$ ding in 1s --no-timer\n<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Ding\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u4f7f\u3044\u65b9\u304c\u7c21\u5358\u306a\u306e\u3067\u30bf\u30a4\u30de\u30fc\u4ee3\u308f\u308a\u306b\u4f7f\u3046\u3068\u4fbf\u5229\u305d\u3046\u3067\u3059\u3002\u306a\u304a\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u8a2d\u5b9a\u3084\u305d\u306e\u4ed6\u74b0\u5883\u8a2d\u5b9a\u306e\u5f71\u97ff\u3067\u3001\u30bf\u30a4\u30e0\u30a2\u30c3\u30d7\u6642\u306b\u30b5\u30a6\u30f3\u30c9\u304c\u518d\u751f\u3055\u308c\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u306f\u9069\u5207\u306b\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c$ sleep 4231; beep\u300d\u3068\u6bce\u56de\u6253\u3061\u8fbc\u3080\u306e\u306b\u75b2\u308c\u305f\u4eba\u306f\u3044\u307e\u305b\u3093\u304b\uff1f\u305d\u306e\u3088\u3046\u306a\u65b9\u306fPython\u3067\u4f5c\u3089\u308c\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30a4\u30e0\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30c4\u30fc\u30eb\u300cDing\u300d\u3092\u8a66\u3057\u3066\u307f\u308b\u3068\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u6642\u9593\u3092\u6307\u5b9a\u3057\u3066\u8d77\u52d5\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":43720,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[3728,703],"class_list":["post-43719","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-ding","tag-python"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/43719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=43719"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/43719\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/43720"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=43719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=43719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=43719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}