Skip to content

Instantly share code, notes, and snippets.

View kdmsnr's full-sized avatar

Masanori Kado / 角 征典 kdmsnr

View GitHub Profile
  • pandocはtexファイルを作るまで使用するだけ
  • texファイルは自分でコンパイルする

1. Markdownに適当に書く

# タイトル

世紀の大発見でした[@book-first]
@kdmsnr
kdmsnr / alfred-workflow-scrapbox.rb
Last active September 3, 2021 05:24
AlfredのワークフローでScrapboxを検索する
# Originally created by Yuta Yamamoto <https://github.com/tuki0918/alfred-scrapbox-listview>
file = "/tmp/#{ENV['projectId']}-scrapbox.json"
if !File.exist?(file) or File.mtime(file) < (Time.now - 3*3600)
`/usr/bin/curl -H "Cookie: connect.sid=#{ENV['token']}" -o #{file} -s "https://scrapbox.io/api/pages/#{ENV['projectId']}?limit=1000&sort=accessed"`
end
q = `echo "{query}" | /usr/local/bin/nkf -w --ic=utf8-mac`
q.strip!

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

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

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

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

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

小学生が見るべき映画

ディズニー/Pixar

  • アナと雪の女王
  • ウォーリー
  • Mr.インクレディブル
  • インサイドヘッド
  • ファインディング・ニモ
  • ベイマックス
  • モンスターズ・インク
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' +
(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)
# 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
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))