Andon

Andon is the colorscheme for Vim. Inspired by scenery of kyoto.

View on GitHub

MIT License.

1
#!/usr/bin/env ruby -I ../lib -I lib
2
# coding: utf-8
3
require 'sinatra'
4
set :server, 'thin'
5
connections = []
6
7
get '/' do
8
 halt erb(:login) unless params[:user]
9
 erb :chat, :locals => { :user => params[:user].gsub(/\W/, '') }
10
end
11
12
get '/stream', :provides => 'text/event-stream' do
13
  stream :keep_open do |out|
14
    connections << out
15
    out.callback { connections.delete(out) }
16
  end
17
end
18
19
post '/' do
20
  connections.each { |out| out << "data: #{params[:msg]}\n\n" }
21
  204 # response without entity body
22
end

VISUALchat.rb

Colors

Andon paid close attention and chosen the color so that the eyes would not hurt even if you looked at it for a long time.

Editor

Terminal Emulators