Skip to content

Instantly share code, notes, and snippets.

View kdmsnr's full-sized avatar

Masanori Kado / 角 征典 kdmsnr

View GitHub Profile
// "/"で検索窓にフォーカスする
(() => {
const onKeyDown = function(e) {
if (e.keyCode == 191) { // 191 == "/"
if (location.pathname == "/YOUR_PROJECT/" || location.pathname == "/YOUR_PROJECT/search/page") {
if (document.activeElement != $(".form-control")[0]) {
e.preventDefault();
$(".form-control")[0].focus();
}
}
;;; obsidianにあわせてwikinameの挙動を変更したい
(defun howm-keyword-search-create (title)
(let ((fn (car (remove nil (mapcar (lambda (x)
(if (string=
(file-name-nondirectory x)
(concat (replace-regexp-in-string "<<< " "" title) ".md"))
x)
) (mapcar #'howm-view-item-filename (howm-all-items)))))))
(if fn
(howm-page-open fn)

2020/07/21「モダン・ソフトウェアエンジニアリングのエッセンス」質問

システムのアーキテクトとして活動していると、グルのように扱われることが多々あります。でも、本当は、メンバの独創を引き出すことこそが必要なのです。メンバの態度を、「決めてください、教えてください」から、「こうしたい」(を阻害しないお膳立て)にするためには、どうすべきでしょうかね。

「独創を出してもいい」ってのが共有されてないのかもですね。あるいはスキルがないので手を出しにくいのかもしれません。いずれの場合も何らかの方法で情報やナレッジを形式知化できるとよさそうです。

Essence の導入について気になっていることがあります。チームメンバー全員が Essence の背景から理解できる状態に持っていくまで、結構な教育コストがかかるような気がします。ゲーム形式での使い方(3種類)も紹介されていましたが、理解度は別にして今のプロセスを可視化するツールとして利用するのは悪手でしょうか。

「カードを広げてみんなで見てみよう」程度なら、教育コストもさほどかからないですし、そのほうがEssenceだとわからずに使ってくれるのではないかと思います。ゲーム形式はそうしたことを目的としていますので、ぜんぜん悪手ではないです。

scrapbox.PopupMenu.addButton({
title: 'code',
onClick: text => {
return 'code:script\n' + text.split(/\n/).map(line => '\t' + line).join('\n');
}
});
scrapbox.PopupMenu.addButton({
title: 'table',
onClick: text => {
return 'table:table\n' +
# I'm here: ~/src/github.com/decomoji/slack-reaction-decomoji/scripts/
require 'kimurai'
require 'highline/import'
require 'retryable'
require 'open-uri'
require 'json'
class Spider < Kimurai::Base
@name = "slack_spider"
@engine = :selenium_chrome
(require 'url-util)
(defun my:deepl-translate (&optional string)
(interactive)
(setq string
(cond ((stringp string) string)
((use-region-p)
(buffer-substring (region-beginning) (region-end)))
(t
(save-excursion
(let (s)

小学生が見るべき映画

ディズニー/Pixar

  • アナと雪の女王
  • ウォーリー
  • Mr.インクレディブル
  • インサイドヘッド
  • ファインディング・ニモ
  • ベイマックス
  • モンスターズ・インク
window.addEventListener("load", main, false);
function main(e) {
const jsInitCheckTimer = setInterval(jsLoaded, 1000);
function jsLoaded() {
var t = document.querySelector(".ebookBuyboxDeliverToDropdown").children[1];
if (t != null) {
clearInterval(jsInitCheckTimer);
var c = t.parentNode.children;
for (var i = 0; i < c.length; i++) {
// inspired from:
// https://gist.github.com/masuidrive/0bea937bcaf12bc94e7fba8acf13382a
// ## Go to https://api.slack.com/
// * Create your app.
// * Create "Bot User".
// * Go to "OAuth Tokens & Redirect URLs" and copy the Access Token.
// * Set the permission of "chat:write:bot" to the bot.
// ## Go to https://www.google.com/script/start/
@kdmsnr
kdmsnr / howm-hastag.el
Created August 22, 2018 16:45
howmでハッシュタグをaction-lockにする
(defun my/action-lock-search-hashtag (hashtag)
(howm-search hashtag t))
(setq action-lock-default-rules
(cons (action-lock-general 'my/action-lock-search-hashtag "^#[^ #]+$" 0)
action-lock-default-rules))