| 世代 | 出生年 | 年齢 | 時勢 |
|---|---|---|---|
| 昭和一桁世代 | 1927年-1934年 | 82歳-89歳 | 世界恐慌 |
| 焼け跡世代 | 1935年-1946年 | 70歳-81歳 | 第二次世界大戦終戦 |
| 全共闘世代 | 1941年-1949年 | 67歳-75歳 | 全共闘運動、安保闘争 |
| 団塊の世代 | 1947年-1949年 | 67歳-69歳 | 第一次ベビーブーム |
| しらけ世代 | 1950年-1964年 | 52歳-66歳 | 第一次オイルショック |
| 新人類 | 1961年-1970年 | 46歳-55歳 | 共通一次試験開始、サブカルチャー隆盛 |
| バブル世代 | 1965年-1969年 | 47歳-51歳 | ツッパリ文化 |
| 団塊ジュニア | 1971年-1974年 | 42歳-45歳 | 第二次ベビーブーム |
This file contains hidden or 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 | |
| # | |
| # Author: Stefan Buck | |
| # License: MIT | |
| # https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
| # | |
| # | |
| # This script accepts the following parameters: | |
| # | |
| # * owner |
This file contains hidden or 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
| (defun send-region-to-clipboard (START END) | |
| ;; Place https://github.com/skaji/remote-pbcopy-iterm2/blob/master/pbcopy as `cpbcopy` | |
| (interactive "r") | |
| (let ((infile (make-temp-file "send-region-to-clipboard"))) | |
| (write-region (buffer-substring (region-beginning) (region-end)) | |
| nil | |
| infile | |
| nil | |
| 'nomsg) | |
| (with-temp-buffer |
This file contains hidden or 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
| function addb | |
| while read -l line | |
| echo $line | |
| end | |
| if count $argv >/dev/null | |
| echo $argv[1] | |
| end | |
| end |
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "errors" | |
| "fmt" | |
| "html/template" | |
| "log" | |
| "net" | |
| "net/mail" |
This file contains hidden or 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 zsh | |
| FO=$(cat) | |
| X=$(head -n 1 <<<$FO) | |
| YL=$(echo $FO|wc -l|bc) | |
| FF=$((echo $X|tr 1 0;echo $FO;echo $X|tr 1 0)|addl 0\ |addr \ 0) | |
| for L in {1..$YL};do | |
| for C in {1..$(echo $X|awk '{print NF}')}; do | |
| echo $FF | sed -n $L,$((L+2))p | cut -d \ -f $C,$((C+1)),$((C+2)) | xargs | { | |
| read B | |
| if echo $B | grep -q '. . . . 1 . . . .';then |
This file contains hidden or 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
| // Here is an extremely simple version of work scheduling for multiple | |
| // processors. | |
| // | |
| // The Problem: | |
| // We have a lot of numbers that need to be math'ed. Doing this on one | |
| // CPU core is slow. We have 4 CPU cores. We would thus like to use those | |
| // cores to do math, because it will be a little less slow (ideally | |
| // 4 times faster actually). | |
| // | |
| // The Solution: |
This file contains hidden or 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
| # Rules for transparent proxying | |
| iptables -N NO_PROXY -t nat | |
| iptables -A NO_PROXY -t nat -d 0.0.0.0/8 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 10.0.0.0/8 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 127.0.0.0/8 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 169.254.0.0/16 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 172.16.0.0/12 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 192.168.0.0/16 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 224.0.0.0/4 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 240.0.0.0/4 -j ACCEPT |
import os
import sys