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
#! /bin/bash -xe | |
BASE="/home/nona7/codes/tenki" | |
DATE=`date +'%Y/%m/%d'` | |
JIKKYO="${BASE}/data/${DATE}-jikkyo12.txt" | |
TSUHO="${BASE}/data/${DATE}-tsuho12.txt" | |
mkdir -p "${BASE}/data/`date +'%Y/%m'`" | |
wget http://www.data.jma.go.jp/fcd/yoho/gyogyou/jikkyo12.txt -O "${JIKKYO}" |
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 axios = require('axios') | |
const decode = require('decode-html') | |
const CHANNEL = '#dev' | |
const ISSUE_REPO = 'foo/bar' | |
exports.otochan = (req, res) => { | |
console.log('Received request:', req.body) | |
// slack challenge | |
if (req.body.challenge) { |
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 perl | |
use strict; | |
use warnings; | |
use 5.014; | |
use utf8; | |
use open ':encoding(UTF-8)'; | |
use Encode::Locale; | |
binmode(STDIN, ":encoding(console_in)"); | |
binmode(STDOUT, ":encoding(console_out)"); | |
binmode(STDERR, ":encoding(console_out)"); |