Skip to content

Instantly share code, notes, and snippets.

View satomixx's full-sized avatar

Satomi Suyama satomixx

View GitHub Profile
1. 商品番号1の商品のな前をください
2. ください 名前 商品 商品番号1
3. SELECT 名前 FROM 商品 WHERE 商品番号が1
-> SELECT item_name FROM items WHERE item_id = 1;
if you declare h series without section elements, unknown section would be made automatically.
the undeclared section is not recommended.
@satomixx
satomixx / file1.txt
Created March 25, 2013 09:37
スゲい簡単なPerl入門 - 1stDay ref: http://qiita.com/items/ba7a1d337cfa586eb24d
$ perl test
Name "main::hoge" used only once: possible typo at test line 3.
@satomixx
satomixx / file1.txt
Created March 25, 2013 09:38
スゲい簡単なPerl入門 -2ndDay ref: http://qiita.com/items/43320da7c38813b805ce
my $pkg = shift;
@satomixx
satomixx / date.pm
Created March 26, 2013 02:42
スゲい簡単なPerl入門 -3rdDay ref: http://qiita.com/items/50ec171292de95e8ff3c
package main;
my $date = main->new;
# Using Object(= Reference related with Package name) call subroutine in package
$date->set_date(9);
print "\n";
sub new {
my $pkg = shift;
bless {
year => undef,
month => undef,
$(function(){
hogehoge
}
[% aaaa %]
[%- aaaa -%]
などの違い。。。
@satomixx
satomixx / file1.txt
Created April 2, 2013 05:34
スゲい簡単なPerl入門 -5thDay @_ $_ ref: http://qiita.com/items/4e6f35905122c5505d99
sub fileProc{
#もしいま注目しているファイルやディレクトリがファイルとして存在したら、
#$File::Finde::nameします
print "$File::Find::name\n" if -f $_;
}
@satomixx
satomixx / file0.txt
Created April 4, 2013 01:43
Easy usage of postgresql on heroku ref: http://qiita.com/items/1f63e0993ed15d19f5fe
// Check available addons
% heroku addons:list
// Install postgres
% heroku addons:add heroku-postgresql
// Check addons in your repository
% heroku addons
=== hogehogehogehoge Configured Add-ons
heroku-postgresql:dev HEROKU_POSTGRESQL_TEAL
@satomixx
satomixx / file0.txt
Created April 9, 2013 02:10
さくらVPSでMojoliciousを使うの巻 試練編 ref: http://qiita.com/items/231d9080caa062c67638
[hoge@hog1234xx ~]$ cpan --sudo Mojolicious