Skip to content

Instantly share code, notes, and snippets.

View walkure's full-sized avatar
🦆
鴨川ラジオ体操同好会

walkure walkure

🦆
鴨川ラジオ体操同好会
View GitHub Profile
@suzusime
suzusime / _template.pl
Last active December 24, 2020 16:14
perlでスクリプトを書くときのテンプレ
#!/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)");
@uiur
uiur / index.js
Created April 18, 2019 00:24
slack emoji -> github issue
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) {
@nna774
nna774 / get_tenki.sh
Last active October 31, 2017 10:06
天気予報を保存します。
#! /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}"