shokai / bowl Goto Github PK
View Code? Open in Web Editor NEWBowl is a Mac/Linux controller for your Application.
License: MIT License
Bowl is a Mac/Linux controller for your Application.
License: MIT License
~/.fishbowl/plugins に.rbを入れるとプラグインになる
postされた値がnullの時、defaultを使ってplugin実行する
class String
def escape_cmd
self.gsub(/[`"'\r\n;]/, '')
end
end
Plugins.listをで取得できるのでviewを作ろう
主にcometio.jsをラップする
fishbowl.jsを読み込むだけでcometio.jsも読み込みたい
% gem install fishbowl
% fishbowl start
=> launch http://localhost:8901
fishbowl-plugin-(name) でrubygems.orgに登録させる
arduinoをgem pluginに切り分けるべき
fishbowl.push(plugin_name, object);
fishbowl.plugin.plugin_name(object);
ロード成功したプラグインと失敗したプラグインを分けて、まとめて管理できるようにしたい
今はviewやcontrollerでPluginインスタンスの型をチェックして表示切り替えたりしている @04c59e88dd826fc838650459b3b6a322a49ce89f
どっちがいいか?
on :call do |data, session_id|
puts cmd = "say #{data['speech']} -v #{data['voice']}"
system cmd
end
on :call do |session_id|
puts cmd = "say #{speech} -v #{voice}"
system cmd
end
String以外の型の時は表示を変化させる
CometIO APIだけではなく、RESTfulな普通のAPIも用意する
require "fishbowl-client"
で使えるクライアントアプリが欲しい。
またpluginのサンプルにもRubyクライアントでの使用方法を表示したい。
consoleにする
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.