Skip to content

Instantly share code, notes, and snippets.

View magnolia-k's full-sized avatar

Magnolia.K magnolia-k

View GitHub Profile
@magnolia-k
magnolia-k / thema.md
Created July 16, 2018 10:55
勉強会主催者meetupのトークテーマ例

勉強会を開催するにあたってよく挙がるテーマというか、検討事項の例を挙げてみました。 参考にしてみてください

  1. 勉強会自体の目的・テーマ設定
  2. クローズドな勉強会か、オープンな勉強会か?
  3. 会場を借りる方法(会社の会議室、公共施設、イベントスペース、コワーキングスペースなど)
  4. 告知方法
  5. 参加者のターゲット(初心者、実践する人)
  6. 登壇者の集め方
  7. タイムテーブル
@magnolia-k
magnolia-k / scalatra_sbt_update_plan.md
Last active July 21, 2017 13:51
Scalatra-sbtのアップデートプラン
  • 余計なjavacOptionsが指定されている(そもそもJavaのコードが無い)
  • xsbt-web-pluginのバージョンを上げる
  • sbtのバージョンを上げる
  • sbt 1.0への対応をする
  • AutoPlugin化する
  • README含めてドキュメントを整備する(どのプラグインが何やるのか、さっぱり分からない…)
  • Test用scriptがそもそもscalatra-sbtを読み込んでいない(何をテストしているんだっけ?)   - Pluginごとにテストを分けて、パターンを網羅する   - container:startだとエラーログが出るが、コマンド自体は何もしないで正常終了してしまう。エラーログの出力結果を取得する方法が有ればいいのに。   - jetty:startのログの出力先がデフォルトだと標準エラー出力になって、バグでもないのに赤い文字で出力されるのは嫌な感じなので、標準出力に変更する
@magnolia-k
magnolia-k / collect_scala_artifact_version.rb
Created July 1, 2017 01:52
ScalaのメジャーバージョンごとのArtefactのバージョンを調べるスクリプトです。
#!/usr/bin/env ruby
require 'uri'
require 'open-uri'
require 'json'
require 'pp'
def query(params)
base_url = "http://search.maven.org/solrsearch/select?"

NAME

This is a pod

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 9:

=over is the last thing in the document?!

@magnolia-k
magnolia-k / gist:b556e358bfb6e5c6b3e5
Created December 31, 2014 03:03
perlの正式版のバージョンの一覧を作る
import scala.io.Source
object perlVersions extends App {
val perlVersionList = parsePerlVersions("http://www.cpan.org/src/5.0/")
perlVersionList.foreach(println)
def parsePerlVersions(url: String): List[String] = {
val html = Source.fromURL(url).mkString
import scala.io.Source
object perlVersions extends App {
val perlVersionList = parsePerlVersions("http://www.cpan.org/src/5.0/")
perlVersionList.foreach(println)
def parsePerlVersions(url: String): List[String] = {
val html = Source.fromURL(url).mkString
use strict;
use warnings;
use utf8;
use Test::More;
binmode('STDOUT', ':encoding(cp932)');
binmode('STDERR', ':encoding(cp932)');
use strict;
use warnings;
use utf8;
use Test::More;
tap_encoding 'cp932';
ok(0, 'テスト失敗');
@magnolia-k
magnolia-k / gist:22f6cdc6456f5c83ba9b
Created August 8, 2014 09:07
non latin-1 test script name
$ cat tést.t
use strict;
use warnings;
use Test::More qw/modern/;
ok(0, "test failure" );
subtest 'subtest' => sub {
ok(0, "sub test failure" );
@magnolia-k
magnolia-k / gist:9f5211af7d13cd33ea49
Last active August 29, 2015 14:04
Test::More utf8 test
$ cat unicode_02.t
use strict;
use warnings;
use utf8;
use Test::More;
binmode Test::More->builder->$_, ":utf8" for qw/output failure_output todo_output/;