Skip to content

Instantly share code, notes, and snippets.

♨️
460

ytnobody / satoshi azuma ytnobody

♨️
460
Block or report user

Report or block ytnobody

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ytnobody
ytnobody / iex.txt
Created Sep 2, 2019
failed etude of elixir mock server
View iex.txt
iex(5)> sv = MyMock.run()
11:35:22.016 [info] Added handler for /user
11:35:22.016 [info] Added handler for /user/:id
%Mock.MockServer{
name: :my_mock,
pid: #PID<0.765.0>,
port: 64400,
route: %{
@ytnobody
ytnobody / azure-func-migrate-node
Last active Nov 15, 2018
Azure functions v1 -> v2 for Node.js applications for MacOSX
View azure-func-migrate-node
#!/bin/bash
show_help () {
cat <<EOF
Run "npm -g install azure-functions-core-tools" first.
EOF
exit;
}
list_required_extensions () {
@ytnobody
ytnobody / git-bar
Created Nov 1, 2018
キーワードでcommit logを引っ掛けてきて、宛先のbranchにcherry-pickするための中間ブランチをつくる、野蛮な工具
View git-bar
#!/bin/sh
help () {
cat <<EOF
Usage:
git-bar [keyword] [Dest Branch]
EOF
exit;
@ytnobody
ytnobody / mishimapm-3.md
Created Jun 3, 2018
Why people says "Perl is guilty" - mishima.pm #3
View mishimapm-3.md

Why people says "Perl is guilty" ?

ytnobody


ytnobody

  • born: Hakodate
  • live: Ooi-machi
View cpanfile
###
### cpanfile for KH Coder
###
#
# usage:
# $ cd kh_coder/
# $ LANG=C cpanm --installdeps -n .
#
requires 'perl' => '5.008';
View BlobRestProxy.php
<?php
/**
* LICENSE: The MIT License (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://github.com/azure/azure-storage-php/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ytnobody
ytnobody / sent-event.pl
Created Feb 18, 2017
Net::Azure::EventHubsを使ってAzure EventHubs経由でAzure Functionsの関数を起動する事例
View sent-event.pl
use strict;
use warnings;
use utf8;
use Net::Azure::EventHubs;
### EventHubsの接続文字列をここに入れる
my $connection_string = '...';
### EventHubs向けにイベントを送るClientを作る
my $client = Net::Azure::EventHubs->new(
@ytnobody
ytnobody / azure_func.pl
Last active Feb 18, 2017
Azure Function向けのヘルパーライブラリもどきスニペット
View azure_func.pl
use strict;
use warnings;
use utf8;
use JSON::PP;
use Encode;
### タイムゾーン定義 / Azure Functionsでは必須。
BEGIN {
$ENV{TZ} = "JST-9";
};
@ytnobody
ytnobody / connpass_search_sum.pl
Last active Feb 14, 2017
【THE書き捨て】connpassから特定のキーワードで検索した結果を、月ごとのイベント数として出力するスクリプト
View connpass_search_sum.pl
use strict;
use warnings;
use JSON;
use LWP::UserAgent;
use URI;
use utf8;
my $keyword = 'Serverless';
my $baseurl = "https://connpass.com/api/v1/event/";
@ytnobody
ytnobody / cpanfile
Created Dec 22, 2016
Perl入学式 Advent Calendar 2016 第23日目 「Perlで替え歌エンジンをつくる」
View cpanfile
requires 'JSON';
requires 'LWP::UserAgent';
requires 'LWP::Protocol::https';
You can’t perform that action at this time.