- python:
python -m SimpleHTTPServer 5000
- perl:
plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root => ".")->to_app
- ruby:
ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port => 5000, :DocumentRoot => ".").start'
- php:
php -S 0.0.0.0:5000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.*; | |
import javafx.geometry.Pos; | |
import javafx.scene.*; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.*; | |
import javafx.scene.paint.Color; | |
import javafx.stage.*; | |
import javax.imageio.ImageIO; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How Akka maps to EAI Patterns | |
Might be up for debate or just plain wrong. Just some notes I scribbled down some time ago. | |
----------------------------------------------------------------------------------------------------------------- | |
EAI PATTERN AKKA PATTERN REFERENCE | |
----------------------------------------------------------------------------------------------------------------- | |
Point to Point Channel Regular Actor Communication http://www.eaipatterns.com/PointToPointChannel.html | |
Event-Driven Consumer Regular Actor Receive http://www.eaipatterns.com/EventDrivenConsumer.html | |
Message Selector Actor with Stash http://www.eaipatterns.com/MessageSelector.html |
色んなSQLをSquerylで書くと? のパクリです。
テーブル名とかカラム名はちょっと弄りました。
SELECT *
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef httpstatus | |
# | |
# httpstatus コマンド用zsh補完関数 | |
# | |
# このファイルfpathの通ったディレクトリに置きzshを再起動して下さい。 | |
# その際ファイル名を必ず _httpstatus として下さい。 | |
# | |
# $ cp _httpstatus /usr/local/share/zsh/site-functions | |
# $ exec zsh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download latest libevent2 and tmux sources, and extract them somewhere | |
# (thx bluejedi for tip on latest tmux URL) | |
# | |
# at the time of writing: | |
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
# http://sourceforge.net/projects/tmux/files/latest/download?source=files | |
# | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ivysettings> | |
<!-- Build.scalaのsettingsにexternalIvySettings()を追加すると有効 --> | |
<caches useOrigin="true"/> | |
<settings defaultResolver="play"/> | |
<resolvers> | |
<chain name="play"> | |
<filesystem name="1"> | |
<!-- ここは絶対パスじゃないとだめ。playの${sbt.ivy.home}は相対パスだった --> | |
<artifact pattern="/Users/yasushi/src/play/play-2.0/repository/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" /> | |
</filesystem> |