Skip to content

Instantly share code, notes, and snippets.

@Nia-TN1012
Forked from Myoga1012/Calendar.nako
Created January 30, 2023 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nia-TN1012/09702b84ba7f9c21f5ef73e54ab4daf1 to your computer and use it in GitHub Desktop.
Save Nia-TN1012/09702b84ba7f9c21f5ef73e54ab4daf1 to your computer and use it in GitHub Desktop.
なでしこでカレンダーを出力するスクリプトです。
# 名前 : Nia Tomonaka
# Twitter : https://twitter.com/nia_tn1012
母艦の0、0を$FFF5DEE2で塗る。 # 薄い撫子色
当月1日は「{今年}/{今月}/01」。
当月日数は当月1日と「{今年}/{来月}/01」の日数差。
オフセットで1から当月1日の曜日番号取得まで繰り返す
「 」と継続表示。
シーケンスで1から当月日数まで繰り返す。
シーケンスを「%3d」で形式指定して継続表示。
もし、( 当月1日の曜日番号取得 + シーケンス ) % 7 == 0ならば
「」と表示。 # 改行します。
基本X = 10。 # 日曜日の位置に合わせます。
# Calender.nako
# Copyright (c) 2014-2023 Nia T.N. Tech Lab. / Chronoir.net.
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
@Nia-TN1012
Copy link
Author

GitHubのアカウント統合のため、Myoga1012→Nia-TN1012に移行しました。

旧URL: https://gist.github.com/Myoga1012/f8d886557c23ac19efb3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment