「Google Apps Script でアクセスカウンターを作る」中に登場するソースコードのコメントなし版です。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def is_prime(n: int) -> bool: | |
if n <= 1: | |
return False | |
else: | |
range_end: int = n + 1 | |
flag: list = [True] * range_end | |
flag[0] = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Universal Colors | |
Ref. https://jfly.uni-koeln.de/colorset/CUD_color_set_GuideBook_2018_for_print_cs4.pdf | |
*/ | |
:root { | |
/* Accent colors */ | |
--red: #ff4b00; | |
--yellow: #fff100; | |
--green: #03af7a; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch ($Args.Length) { | |
0 { | |
Write-Host "No item is selected." | |
exit | |
} | |
1 { | |
Write-Host "The following item will be deleted:" | |
Write-Host "$($Args)" | |
} | |
Default { |
All of my public gists are licensed under the MIT license unless otherwise noted.
Public として公開している Gist のライセンスは,特段の断りがない限り MIT ライセンスとします。