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
#! /usr/bin/env python3 | |
# Usage: | |
# $ python3 this.py > output.csv | |
# $ nkf --overwrite --oc=UTF-8-BOM output.csv | |
import glob | |
import hashlib | |
import os | |
import sys |
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
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the | |
# default value. |
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
// Googleシートからは `=TOROW(BIB(A1))` のように使う。 | |
function BIB(isbn) { | |
return _getBibEntriesAsListByIsbn(isbn); | |
} | |
function _getBibEntriesAsListByIsbn(isbn) { | |
const entries = _getBibEntriesAsMapByIsbn(isbn); | |
return [ | |
entries.isbn, |
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
JIMPrefPunctuationTypeKey=$(defaults read com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey) | |
if [ $JIMPrefPunctuationTypeKey -eq 0 ]; then | |
defaults write com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey 3 | |
elif [ $JIMPrefPunctuationTypeKey -eq 3 ]; then | |
defaults write com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey 0 | |
fi | |
killall -HUP "JapaneseIM-RomajiTyping" |
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 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
// ... | |
ref.listen( | |
snackBarProvider, | |
(previous, next) { | |
if (mounted && next != null) { | |
ScaffoldMessenger.of(context).showSnackBar(next); | |
} | |
}, |
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
const table = document.getElementsByTagName("table")[2]; | |
for (const row of table.rows) { | |
try { | |
const last_submitted_at = new Date(row.cells[3].innerText.split("\n")[0]); | |
const last_scored_at = new Date(row.cells[6].innerText.split("\n")[0]); | |
if(last_submitted_at > last_scored_at) { | |
row.style.backgroundColor = "red"; | |
} else { | |
/* do nothing */ | |
} |
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
# Copy ~/Library/Safari/Bookmarks.plist to ./Bookmarks.plist via Finder | |
# plutil -convert xml1 -o ./Bookmarks.xml ./Bookmarks.plist | |
# export-urls-from-safari-reading-list.rb > safari-reading-list.csv | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
# https://github.com/patsplat/plist | |
gem "plist" | |
end |
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
# https://stackoverflow.com/a/24237525 | |
require "net/http" | |
(Net::HTTP::SSL_IVNAMES << :@ssl_options).uniq! | |
(Net::HTTP::SSL_ATTRIBUTES << :options).uniq! | |
Net::HTTP.class_eval do | |
attr_accessor :ssl_options | |
end |
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
## 必要な機能の検討 | |
- 学部生でも簡単に使える。 | |
- 研究ノートを日報形式で作成できる。 | |
- 研究ノートにコメントを書ける。 | |
- 研究ノートを検索できる。 | |
- 研究ノートの変更履歴を記録できる。 | |
- 研究ノートの変更履歴を表示する際は差分やタイムスタンプを確認できる。 | |
- 研究ノートをエクスポートしてアーカイブできる。 | |
- エクスポートした研究ノートにはタイムスタンプ、著者、本文、コメントが含まれる。 |
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
// ==UserScript== | |
// @name Remove LGTMs on Qiita | |
// @namespace Violentmonkey Scripts | |
// @match https://qiita.com/* | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @run-at document-idle | |
// @version 2.0 | |
// @description NOTE: This script only works on the page displayed circle-button of LGTM. Please open the entry page on a full-width size display. | |
// ==/UserScript== |
NewerOlder