$ cd $$PROJECT_DIR$$
$ rm -rf .idea .idea_modules
$ play
[PROJECT_NAME] $ compile
[PROJECT_NAME] $ idea no-fsc no-sbt-build-module
- Intellij IDEAでプロジェクトを開く
- Play 2 のコメント欄の Ignore をクリック
- ProjectSettinsを開く
- SDKs に Java1.7 を追加する(追加されてることもある)
| sudo yum -y update | |
| sudo yum -y install httpd | |
| sudo chkconfig httpd on | |
| sudo service httpd start | |
| sudo yum -y install mysql-server | |
| sudo yum -y install mysql-devel # DBD::mysqlでmysql.hやら必要になる(/usr/include以下に入る) | |
| sudo chkconfig mysqld on | |
| sudo service mysqld start | |
| sudo yum -y install nginx | |
| sudo chkconfig nginx on |
| #!/bin/sh | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
| fi |
$ cd $$PROJECT_DIR$$
$ rm -rf .idea .idea_modules
$ play
[PROJECT_NAME] $ compile
[PROJECT_NAME] $ idea no-fsc no-sbt-build-module
| import org.apache.abdera.Abdera | |
| import org.apache.abdera.protocol.client.AbderaClient | |
| import org.apache.abdera.protocol.client.RequestOptions | |
| import org.apache.abdera.ext.wsse.WSSEAuthScheme; | |
| import org.apache.abdera.model.Document | |
| import org.apache.abdera.model.Entry | |
| import org.apache.abdera.model.Feed | |
| import org.apache.abdera.ext.history.FeedPagingHelper | |
| import org.apache.commons.httpclient.UsernamePasswordCredentials |
| (defun run-script-region () | |
| "指定範囲内のコードをスクリプトとして実行します" | |
| (interactive) | |
| (if (>= (region-beginning) (region-end)) | |
| (message "no selected region") | |
| (let* ((run-script-region-file-path "/tmp/run-script-region") | |
| (extention (progn | |
| (string-match "\\..*" (buffer-name)) | |
| (substring (buffer-name) (+ (match-beginning 0) 1) (match-end 0)))) | |
| (command (cond ((equal extention "js") "node") |
| (defun run-perl-region () | |
| "指定範囲内のコードをスクリプトとして実行します" | |
| (interactive) | |
| (if (>= (region-beginning) (region-end)) | |
| (message "no selected region") | |
| (let ((run-perl-region-file-path "/tmp/run-perl-region")) | |
| (write-region (region-beginning) (region-end) run-perl-region-file-path nil) | |
| (compile | |
| (format | |
| "cd %s; perl -M'Project::Libs lib_dirs => [qw(modules/*/lib local/lib/perl5)]' %s" |
| #!/usr/bin/env perl | |
| # | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Data::Dumper; | |
| my $file = "hoge.txt"; |
| #!/usr/bin/env perl | |
| # | |
| # | |
| use utf8; | |
| use strict; | |
| use warnings; | |
| use LWP::Simple; | |
| use XML::RSS; | |
| use Getopt::Long; | |
| use Readonly; |
| #!/usr/bin/env perl -s | |
| # | |
| # hatebu_it.pl - | |
| # | |
| use utf8; | |
| use LWP::Simple; | |
| use XML::RSS; | |
| use List::MoreUtils qw/all/; | |
| use Readonly; | |
| Readonly my $ROW_LENGTH => 60; |
| #!/usr/bin/env perl | |
| use Mojolicious::Lite; | |
| use DBI; | |
| # Documentation browser under "/perldoc" | |
| plugin 'PODRenderer'; | |
| get '/assets/javascripts/echo.js' => { template => 'assets/javascripts/echo', format => 'js' } => 'echo-js'; | |
| get '/' => sub { |