Skip to content

Instantly share code, notes, and snippets.

View gardejo's full-sized avatar

MORIYA Masaki gardejo

View GitHub Profile
@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 / .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*
#! /usr/local/bin/perl
# ****************************************************************
# pragma(s)
# ****************************************************************
use strict;
use warnings;
@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;
@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 / 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 / META.yml
Created May 12, 2010 14:18
PSGI-Doc-JA (trial)
version: 1.03
distribution: PSGI
@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 / example.pl.bat
Created May 29, 2010 07:49
Force them to run your script with the intentional interpreter!
@rem= '
@echo off
setlocal EnableExtensions EnableDelayedExpansion
if "%strawberry%" equ "" (
set strawberry=\\{OUR_SHARED_DIRECTORY}\env\perl\5.12.0.1\
)
set path=%path%;%strawberry%\c\bin;%strawberry%\perl\bin;%strawberry%\perl\site\bin
set perl=%strawberry%\perl\bin\perl.exe
@gardejo
gardejo / class_table_inheritance.pl
Created December 7, 2010 16:58
Several implementation for the table inheritance patterns
#!/usr/bin/perl
use 5.010_000;
use strict;
use warnings;
use utf8;
use FindBin;
use lib "$FindBin::Bin/../lib";