git log -p -S hoge
相当。捗る。
現在いるブランチへのマージコミットだけを列挙する。
# 指定したファイルに関するマージコミットだけを列挙する。
const process = require('process') | |
const https = require('https') | |
const slackToken = process.env.SLACK_TOKEN | |
if (!process.env.SLACK_TOKEN) { | |
console.error('Environment variable SLACK_TOKEN is empty!') | |
process.exit(1) | |
} | |
if (!process.argv[2]) { | |
console.error('usage: node slack-reactions.js MESSAGE_URL') |
// Compiled using ts2gas 1.6.2 (TypeScript 3.4.4) | |
var exports = exports || {}; | |
var module = module || { exports: exports }; | |
//import { ConnpassEventsResponse } from "./connpass"; | |
// Connpass API: https://connpass.com/about/api/ | |
// | |
// 2400 is a series id of ふくもく会. | |
// Your series id can be revrieved by calling | |
// https://connpass.com/api/v1/event/?event_id=YOUR_EVENT_ID | |
var CONNPASS_SERIES_ID = 2400; |
# Simulate Monty Hall Problem | |
# https://analytics-notty.tech/very-good-explain-montyhall-problem/ | |
import random | |
def game(change): | |
doors = [1, 2, 3] | |
bingo = random.choice(doors) | |
hand = random.choice(doors) |
// 参考: | |
// * https://blog1.mammb.com/entry/2020/12/08/224315 | |
@file:DependsOn("io.ktor:ktor-server-netty:1.4.3") | |
@file:DependsOn("ch.qos.logback:logback-classic:1.2.3") | |
import io.ktor.application.* | |
import io.ktor.http.* | |
import io.ktor.response.* | |
import io.ktor.routing.* |
cat file.txt | awk 'BEGIN {OFS="\t"} NR%2==0 {print $1"ふる",$2,$3} NR%2==1 {print $0}'