cat file.txt | awk 'BEGIN {OFS="\t"} NR%2==0 {print $1"ふる",$2,$3} NR%2==1 {print $0}'
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://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.* |
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
# 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) |
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
// 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; |
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 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') |
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
var express = require('express'); | |
var router = express.Router(); | |
const AA = `| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
Edge や IE での動作確認のため Microsoft からダウンロードした VirtualBox の VM をいい感じにセットアップするためのメモ。
- メインメモリー 4096MB
- ビデオメモリ 128MB
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 bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |
NewerOlder