Permalink
Browse files

mac-r drank 58161 bottles of orange juice

  • Loading branch information...
1 parent 0d29b6a commit 580ef28229d331a7b0a544175121a02581162f1f @mac-r mac-r committed Jan 24, 2013
View
0 bin/ajaila 100755 → 100644
No changes.
@@ -8,7 +8,7 @@
options = args #[0].split(":")
instance_file = Ajaila::ConsoleHelper.name_to_file(options[1])
instance_title = options[1]
- types = ["miner","selector"]
+ types = ["miner","selector", "presenter"]
message = "CHECK YOURSELF\n To run ajaila environment: ajaila run\n To run miner: ajaila run miner some_miner\n To run selector: ajaila run selector some_selector"
raise Ajaila::Messager.info(message) if types.include?(options.first) == false
@@ -48,6 +48,9 @@
if options.first == "selector"
system "ruby #{ROOT}/datasets/#{instance_file}.selector.rb"
end
+ if options.first == "presenter"
+ system "ruby #{ROOT}/sandbox/presenters/#{instance_file}.presenter.erb"
+ end
end
end
end
@@ -0,0 +1 @@
+# nothing here
@@ -16,6 +16,7 @@
-moz-box-shadow: 0 0 10px rgba(10, 0, 0, 0.5);
-webkit-box-shadow: 0 0 10px rgba(10, 0, 0, 0.5);
box-shadow: 0 0 10px rgba(10, 0, 0, 0.5);
+ margin-bottom: 5%;
}
/* line 20 */
.container a {
@@ -0,0 +1,73 @@
+<html><head>
+ <title>Ajaila Homepage</title>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+ <link href="assets/application.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap.css" media="all" rel="stylesheet" type="text/css">
+ </head>
+ <body>
+ <script src="assets/ga.js" async="" type="text/javascript"></script><script src="assets/jquery.js" type="text/javascript"></script>
+ <script charset="utf-8" src="assets/jquery_002.js" type="text/javascript"></script>
+ <script charset="utf-8" type="text/javascript">
+ $(document).ready(function(){ $("#toc").tableOfContents(); });
+ </script>
+ <div class="navbar navbar-top">
+ <ul class="nav menu" style="float:left">
+ <li class="bran">
+ <a href="http://ajaila.github.com/">
+ Ajaila Dashboard
+ </a>
+ <span style="font-size:10px; font-family:Arial; color: yellow">beta</span>
+ </li>
+ </ul>
+ <ul class="nav menu" style="float:right">
+ <li class="page">
+ <a href="#">
+ Home
+ </a>
+ </li>
+ </ul>
+ </div>
+ <div class="container">
+ <div class="row" style="padding: 15px">
+ <div class="span1">
+ <img alt="Your datamining sandbox" src="assets/ajaila_small.png">
+ </div>
+ <div class="span10" style="text-align: center">
+ <div class="row header">
+ {{ application }} Dashboard
+ </div>
+ <div class="row descriptor">
+ Welcome! Here is the most valuable information about the project.
+ </div>
+ </div>
+ </div>
+ <div class="line" style="background-color: darkred; height: 5px;"></div>
+ <div class="docs">
+ <div id="wrapper">
+ <div class="span11 info">
+ <h1>Getting Started With Ajaila</h1>
+ <p>
+ After reading this you'll learn what Ajaila is, you'll
+understand it's advantages in comparison with other datamining
+frameworks and platforms.
+ </p>
+ <p>
+ Moreover we'll explain you, how to use this powerfull tool in your day by day datamining activities.
+ </p>
+ <h2 id="introduction">Introduction</h2>
+ <p>
+ Ajaila name is the composition of two words: ajala and
+agile. According to african mythology "Ajala" is the god of creation,
+who lives in heaven and makes human faces from clay and chaos. And as
+far as you most probably know "agile" describes a flexible approach to
+software development, which expects you to split the workflow into
+sustainable pieces. Therefore it shouldn't be surprising for you why
+Ajaila is called like that. We are talking about datamining framework
+which allows you to follow agile practices.
+<%= yield %>
+ </p>
+
+ </div>
+ </div>
+ </div>
+ </div>
+</body></html>
@@ -1,7 +1,7 @@
<html><head>
<title>Ajaila Homepage</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
- <link href="assets/application.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap-responsive.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap-responsive_002.css" media="all" rel="stylesheet" type="text/css"><link href="assets/sunburst.css" media="all" rel="stylesheet" type="text/css">
+ <link href="assets/application.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<script src="assets/ga.js" async="" type="text/javascript"></script><script src="assets/jquery.js" type="text/javascript"></script>
@@ -63,7 +63,7 @@ <h2 id="introduction">Introduction</h2>
sustainable pieces. Therefore it shouldn't be surprising for you why
Ajaila is called like that. We are talking about datamining framework
which allows you to follow agile practices.
-<svg fill='none' font-family='sans-serif' font-size='10px' height='150.0' stroke='none' stroke-width='1.5' width='150.0' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns='http://www.w3.org/2000/svg'><g transform='translate(0.0,0.0)'><rect fill='rgb(31,119,180)' height='80' width='20' y='70'/><rect fill='rgb(31,119,180)' height='96.0' width='20' x='25' y='54.0'/><rect fill='rgb(31,119,180)' height='136.0' width='20' x='50' y='14.0'/><rect fill='rgb(31,119,180)' height='120.0' width='20' x='75' y='30.0'/><rect fill='rgb(31,119,180)' height='56.0' width='20' x='100' y='94.0'/><rect fill='rgb(31,119,180)' height='24.0' width='20' x='125' y='126.0'/></g></svg>
+<svg fill='none' font-family='sans-serif' font-size='10px' height='225' stroke='none' stroke-width='1.5' width='430' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns='http://www.w3.org/2000/svg'><g transform='translate(20,5)'><path d='M0.0,200.0L133.33333333333331,133.33333333333334L266.66666666666663,66.66666666666669L400.0,0.0' fill='none' stroke='rgb(31,119,180)' stroke-width='5'/></g><g transform='translate(20,5)'><path d='M0.0,200.0L133.33333333333331,133.33333333333334L266.66666666666663,66.66666666666669L400.0,0.0' fill='none' stroke='rgb(255,0,0)' stroke-width='1'/></g></svg>
</p>
</div>
@@ -0,0 +1,26 @@
+require "ajaila/root_definer"
+
+
+Ajaila::RootDefiner.set_root
+$:.unshift File.expand_path("../config", [ROOT+"/*"][0])
+$:.unshift File.expand_path("../sandbox/helpers", [ROOT+"/*"][0])
+
+require "db"
+require "application.helper"
+require 'rubyvis'
+
+module Ajaila
+ module Presenters
+ self.extend Ajaila::Presenters
+ def create_dashboard
+ set :views, [ "#{ROOT}/sandbox/presenters", File.expand_path("../dashboard/", __FILE__) ]
+ helpers do
+ def find_template(views, name, engine, &block)
+ Array(views).each { |v| super(v, name, engine, &block) }
+ end
+ end
+ end
+ end
+end
+
+

0 comments on commit 580ef28

Please sign in to comment.