投稿されたすべてのコード一覧
val regex = "([0-9]+.[0-9]+.[0-9]+.[0-9]+).*([0-3][0-9].[A-Z][a-z][a-z].20[0-1][0-9]:[0-2][0-9]:[0-5][0-9]:[0-5][0-9]).*".r;scala.io.Source.fromFile("./access_log").getLines().foreach( x => { x match { case regex(ip,date) => {println(ip +" at " + date) } case _ => println("no match") }}
//月齢(年齢は無視して何ヶ月か)を求める$m = date('m') - $birth_month_1;echo '<br>';if ( $birth_day_1 > date('j') ) {$m--;
hist = log --graph --pretty=format:'%Cred%h%Creset - %cd | %s %Cgreen(%cr)%C(yellow)%d%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=short
#!/usr/bin/perluse strict;use warnings;my $text = "";
<style type="text/css">.item {display: inline-block; /* IE67対応は省略 */width: 200px; /* これを指定したくない。dt(というかdt>img)のwidthによって可変にしたい */}