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
object HelloWorld { | |
def main(args: Array[String]) { | |
println("Hello, World!") | |
} | |
} |
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
<configuration> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%message%n%xException</pattern> | |
</encoder> | |
</appender> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<file>logs/application.log</file> |
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
set -g prefix C-t | |
unbind-key C-b | |
# C-t C-n/p rotate window | |
bind C-p previous-window | |
bind C-n next-window | |
# C-t n/p rotate pane | |
bind o select-pane -t :.+ | |
bind p select-pane -t :.- |
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
- name: enabled mod | |
apache2_module: name=proxy_wstunnel state=present | |
notify: | |
- restart apache2 | |
- name: touch proxy setting | |
file: path=/etc/apache2/sites-available/wstunnel.conf state=touch | |
- name: add proxy setting | |
lineinfile: |
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
function! ScratchFunc() | |
:EvervimCreateNote | |
:only | |
endfunction | |
command! Scratch call ScratchFunc() | |
function! ToHatenaFunc() | |
:1s/\(.*\)/TITLE:\1/ | |
:2s/Tags:/CATEGORY:/ | |
:HatebloCreateDraft |
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
filetype plugin indent on | |
syntax enable | |
set ruler | |
set number | |
set expandtab | |
set hlsearch "highlight words | |
set showmatch | |
set nobackup | |
set backspace=indent,eol,start |
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
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.libs.iteratee._ | |
import play.api.libs.concurrent.Execution.Implicits._ | |
import scala.concurrent._ | |
class Application extends Controller { | |
val (out, channel) = Concurrent.broadcast[String] |
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 java.net.URI | |
import org.java_websocket.client.WebSocketClient | |
import org.java_websocket.handshake.ServerHandshake | |
object WebSocketClientTool { | |
var wsClient: WebSocketClient = null | |
def main(args: Array[String]): Unit = { | |
wsClient = new WebSocketClient(new URI("ws://xxxxx/wstest")) { | |
override def onOpen(hs: ServerHandshake) { |
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
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.libs.iteratee._ | |
import play.api.libs.concurrent.Execution.Implicits._ | |
import scala.concurrent._ | |
class Application extends Controller { |
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
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
set runtimepath+=~/.vim/ | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
" plugins | |
NeoBundle 'derekwyatt/vim-scala' | |
NeoBundle 'pearofducks/ansible-vim' |