Skip to content

Instantly share code, notes, and snippets.

View thatblue's full-sized avatar
☺️

thatblue thatblue

☺️
View GitHub Profile
@thatblue
thatblue / this_week_shiitake_uranai.js
Last active August 29, 2023 15:14
今週のしいたけ占いを開くブックマークレット
// このURLはうお座のページを開くようになっているので、`pisces`の部分を開きたい星座に置き換える
data:text/html,<script>const thisMonday = new Date();const dayOfWeek = thisMonday.getDay();const subDate = dayOfWeek === 0 ? 6 : dayOfWeek - 1;thisMonday.setDate(thisMonday.getDate() - subDate);window.location.href = `https://shiitakeuranai.jp/weekly-horoscope/${thisMonday.getFullYear()}-${(thisMonday.getMonth() + 1).toString().padStart(2, %270%27)}-${thisMonday.getDate().toString().padStart(2, 0)}/pisces/`;</script>
.last-updated-at {
margin-left: 0.5em;
}
.last-updated-at:before {
margin-right: 1px;
font-family: "blogicon";
content: "\f02b" !important;
}
@thatblue
thatblue / hatena-blog-last-updated-at.js
Last active May 2, 2020 16:53
はてなブログに最終更新日時を追加するためのjs
window.onload = function () {
if (location.href.indexOf('entry') > 0) {
fragments = location.href.split('/');
year = fragments[4];
month = parseInt(fragments[5], 10);
$.get("https://blog.innotamago.com/sitemap_periodical.xml", {year: year, month: month}, function (data) {
$(data).find("url").each(function (index, dom) {
if ($(dom).find("loc").text() === location.href) {
lastUpdatedAt = Date.parse($(dom).find("lastmod").text());
@thatblue
thatblue / Code-Health-Respectful-Reviews-ja.md
Last active December 3, 2019 03:53
Code Health: Respectful Reviews の日本語抄訳

Code Health: Respectful Reviews 抄訳

https://docs.google.com/document/d/1_Gljf1TMTV2WPsiXCdk8oIkiq6uiajN_IqGdlD7u3Mc/edit?usp=sharing https://testing.googleblog.com/2019/11/code-health-respectful-reviews-useful.html

以下の文章は、記事の内容をかなり大雑把に抄訳したものです。また、抄訳ですので全ての文章を訳しているわけではありません。 参考になれば嬉しいですが、厳密な解釈を必要とする場合は必ず元の記事を当たってください。

2019-12-03追記: Googleの日本語版ブログに翻訳が掲載されました こちらも一応残しておきますが、今後はそちらを参照されることを強く推奨します。

レビューをする側、受ける側両方の心得として