Skip to content

Instantly share code, notes, and snippets.

,(?=(?:[^"]*"[^"]*")*[^"]*$)
@akiniwa
akiniwa / gist:97d91dc7fcf72bb2d430
Created June 30, 2015 06:44
[Nginx] Address already in use

[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

sudo fuser -k 80/tcp
@akiniwa
akiniwa / gist:cde14de4b7e3f7d1356c
Created June 16, 2015 06:49
ファイル更新のときにSBTが動かない
build.sbtの
fork in run := trueを消す.
http://grokbase.com/t/gg/play-framework/153519k038/sbt-run-hangs-on-file-change
@akiniwa
akiniwa / build.sbt
Created April 15, 2015 12:08
build.sbt
scalaVersion := "2.10.3"
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Seq(
"com.github.scala-incubator.io" %% "scala-io-core" % "0.4.1",
"com.github.scala-incubator.io" %% "scala-io-file" % "0.4.1",
"joda-time" % "joda-time" % "2.0",
"org.joda" % "joda-convert" % "1.2",
"org.scalatest" % "scalatest_2.10" % "2.2.2")
@akiniwa
akiniwa / matplotlib-sample.py
Last active September 6, 2016 07:20
Matplotlib sample
from matplotlib import pyplot as plt
# see http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.plot
# 画像サイズ指定.
plt.figure(figsize=(25, 8))
# 凡例などにTeX表記を使用.
plt.rc('text', usetex=True)
@akiniwa
akiniwa / join.pl
Created December 22, 2014 09:40
2つのファイルをキーデータで結合
$file = $ARGV[0];
open(IN, $file) or die("error : $!");
my $keyID = {};
my $count = 0;
while (my $line = <IN>) {
@akiniwa
akiniwa / perl.md
Last active August 29, 2015 14:08
Awk addictのためのperlワンライナー

Awk addictのためのperlワンライナー

perl起動オプション

オプション 意味
-e ワンライナー
-w 警告
-n 暗黙のループ
-p 自動print
@akiniwa
akiniwa / gitflow.description
Created September 13, 2014 09:10
gitflowでクローンするとき
http://stackoverflow.com/questions/16758476/how-to-clone-a-git-flow-style-git-repository#comment24143437_16758476
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.