Skip to content

Instantly share code, notes, and snippets.

View gardejo's full-sized avatar

MORIYA Masaki gardejo

View GitHub Profile
@gardejo
gardejo / home-brew-findbin-bin.pl
Created May 19, 2010 17:09
Let's try to build a home-brew path as an equivalent of $FindBin::Bin!
# When your script dies at an "use FindBin" line on Win32 environment (because the "5C Problem"),
# let's try to build a home-brew path as an equivalent of $FindBin::Bin!
use 5.008_001; # For modern support to multi-byte languages.
# Rational ClearCase 7 contains ratlperl(ccperl) 5.008_006.
use strict;
use warnings;
use utf8;
use Encode qw(encode_utf8 find_encoding);
@gardejo
gardejo / META.yml
Created May 12, 2010 14:18
PSGI-Doc-JA (trial)
version: 1.03
distribution: PSGI
@gardejo
gardejo / toggle_excel.pl
Created May 6, 2010 12:35
Toggle Excel every N seconds.
#!perl
# (ネタ) ExcelをN秒毎に閉じたり開いたりするだけの簡単なお仕事
# ****************************************************************
# pragma(ta)
# ****************************************************************
use strict;
use warnings;
@gardejo
gardejo / equivalent_to_inheritance.yml
Created April 22, 2010 11:54
Replace "inherit (template)" with a new term for Text::Xslate!
# Replace "inherit (template)" with a new term for Text::Xslate!
# http://search.cpan.org/perldoc?Text::Xslate
# See also:
# template, inheritance とかでぐぐってもC++のテンプレートがほとんど。
# http://twitter.com/__gfx__/status/12626545177
# これは別名を付けないと流行らないとみた。
# http://twitter.com/__gfx__/status/12626551999
# [緩募] テンプレートエンジンの「テンプレート継承」にかわるクールな名前
# http://twitter.com/__gfx__/status/12626579862
@gardejo
gardejo / generator.pl
Created March 12, 2010 14:24
A code generator for Lingua::EO::StopWords
#! /usr/bin/perl
use strict;
use warnings;
use utf8;
use URI;
use Web::Scraper;
use YAML::Syck;
#! /usr/local/bin/perl
# ****************************************************************
# pragma(s)
# ****************************************************************
use strict;
use warnings;
@gardejo
gardejo / .gitignore
Created November 11, 2009 15:27
Basic infrastructure of Value Objects to Moose class
.*
!.gitignore
Makefile*
!Makefile.PL
META.yml
blib
build
inc
pm_to_blib
MANIFEST*
@gardejo
gardejo / .gitignore
Created November 9, 2009 16:19
feasibility study on memoization and dynamic type constraints with Moose
.*
!.gitignore
Makefile*
!Makefile.PL
META.yml
blib
build
inc
pm_to_blib
MANIFEST*
@gardejo
gardejo / README
Created October 23, 2009 16:14
Getting started with DBIx::Class::Schema::Loader
Getting started with DBIx::Class::Schema::Loader
@gardejo
gardejo / README
Created October 15, 2009 16:54
BAD sample code snippet to explain circular dependeded attributes (without clearer)
This is a BAD sample.
Use clearer method instead of rebuild mechanism!
See http://blog.eorzea.asia/2009/10/post_72.html for more details.