Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

mac-r drank 58161 bottles of orange juice

  • Loading branch information...
commit 580ef28229d331a7b0a544175121a02581162f1f 1 parent 0d29b6a
Max Makarochkin mac-r authored
0  bin/ajaila 100755 → 100644
File mode changed
5 lib/ajaila/console/executors.rb
@@ -8,7 +8,7 @@
8 8 options = args #[0].split(":")
9 9 instance_file = Ajaila::ConsoleHelper.name_to_file(options[1])
10 10 instance_title = options[1]
11   - types = ["miner","selector"]
  11 + types = ["miner","selector", "presenter"]
12 12 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"
13 13 raise Ajaila::Messager.info(message) if types.include?(options.first) == false
14 14
@@ -48,6 +48,9 @@
48 48 if options.first == "selector"
49 49 system "ruby #{ROOT}/datasets/#{instance_file}.selector.rb"
50 50 end
  51 + if options.first == "presenter"
  52 + system "ruby #{ROOT}/sandbox/presenters/#{instance_file}.presenter.erb"
  53 + end
51 54 end
52 55 end
53 56 end
1  lib/ajaila/dashboard.rb
... ... @@ -0,0 +1 @@
  1 +# nothing here
1  lib/ajaila/dashboard/assets/application.css
@@ -16,6 +16,7 @@
16 16 -moz-box-shadow: 0 0 10px rgba(10, 0, 0, 0.5);
17 17 -webkit-box-shadow: 0 0 10px rgba(10, 0, 0, 0.5);
18 18 box-shadow: 0 0 10px rgba(10, 0, 0, 0.5);
  19 + margin-bottom: 5%;
19 20 }
20 21 /* line 20 */
21 22 .container a {
73 lib/ajaila/dashboard/layout.erb
... ... @@ -0,0 +1,73 @@
  1 +<html><head>
  2 + <title>Ajaila Homepage</title>
  3 + <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  4 + <link href="assets/application.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap.css" media="all" rel="stylesheet" type="text/css">
  5 + </head>
  6 + <body>
  7 + <script src="assets/ga.js" async="" type="text/javascript"></script><script src="assets/jquery.js" type="text/javascript"></script>
  8 + <script charset="utf-8" src="assets/jquery_002.js" type="text/javascript"></script>
  9 + <script charset="utf-8" type="text/javascript">
  10 + $(document).ready(function(){ $("#toc").tableOfContents(); });
  11 + </script>
  12 + <div class="navbar navbar-top">
  13 + <ul class="nav menu" style="float:left">
  14 + <li class="bran">
  15 + <a href="http://ajaila.github.com/">
  16 + Ajaila Dashboard
  17 + </a>
  18 + <span style="font-size:10px; font-family:Arial; color: yellow">beta</span>
  19 + </li>
  20 + </ul>
  21 + <ul class="nav menu" style="float:right">
  22 + <li class="page">
  23 + <a href="#">
  24 + Home
  25 + </a>
  26 + </li>
  27 + </ul>
  28 + </div>
  29 + <div class="container">
  30 + <div class="row" style="padding: 15px">
  31 + <div class="span1">
  32 + <img alt="Your datamining sandbox" src="assets/ajaila_small.png">
  33 + </div>
  34 + <div class="span10" style="text-align: center">
  35 + <div class="row header">
  36 + {{ application }} Dashboard
  37 + </div>
  38 + <div class="row descriptor">
  39 + Welcome! Here is the most valuable information about the project.
  40 + </div>
  41 + </div>
  42 + </div>
  43 + <div class="line" style="background-color: darkred; height: 5px;"></div>
  44 + <div class="docs">
  45 + <div id="wrapper">
  46 + <div class="span11 info">
  47 + <h1>Getting Started With Ajaila</h1>
  48 + <p>
  49 + After reading this you'll learn what Ajaila is, you'll
  50 +understand it's advantages in comparison with other datamining
  51 +frameworks and platforms.
  52 + </p>
  53 + <p>
  54 + Moreover we'll explain you, how to use this powerfull tool in your day by day datamining activities.
  55 + </p>
  56 + <h2 id="introduction">Introduction</h2>
  57 + <p>
  58 + Ajaila name is the composition of two words: ajala and
  59 +agile. According to african mythology "Ajala" is the god of creation,
  60 +who lives in heaven and makes human faces from clay and chaos. And as
  61 +far as you most probably know "agile" describes a flexible approach to
  62 +software development, which expects you to split the workflow into
  63 +sustainable pieces. Therefore it shouldn't be surprising for you why
  64 +Ajaila is called like that. We are talking about datamining framework
  65 +which allows you to follow agile practices.
  66 +<%= yield %>
  67 + </p>
  68 +
  69 + </div>
  70 + </div>
  71 + </div>
  72 + </div>
  73 +</body></html>
4 lib/ajaila/dashboard/layout.html
... ... @@ -1,7 +1,7 @@
1 1 <html><head>
2 2 <title>Ajaila Homepage</title>
3 3 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
4   - <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">
  4 + <link href="assets/application.css" media="all" rel="stylesheet" type="text/css"><link href="assets/bootstrap.css" media="all" rel="stylesheet" type="text/css">
5 5 </head>
6 6 <body>
7 7 <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>
63 63 sustainable pieces. Therefore it shouldn't be surprising for you why
64 64 Ajaila is called like that. We are talking about datamining framework
65 65 which allows you to follow agile practices.
66   -<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>
  66 +<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>
67 67 </p>
68 68
69 69 </div>
26 lib/ajaila/presenters.rb
... ... @@ -0,0 +1,26 @@
  1 +require "ajaila/root_definer"
  2 +
  3 +
  4 +Ajaila::RootDefiner.set_root
  5 +$:.unshift File.expand_path("../config", [ROOT+"/*"][0])
  6 +$:.unshift File.expand_path("../sandbox/helpers", [ROOT+"/*"][0])
  7 +
  8 +require "db"
  9 +require "application.helper"
  10 +require 'rubyvis'
  11 +
  12 +module Ajaila
  13 + module Presenters
  14 + self.extend Ajaila::Presenters
  15 + def create_dashboard
  16 + set :views, [ "#{ROOT}/sandbox/presenters", File.expand_path("../dashboard/", __FILE__) ]
  17 + helpers do
  18 + def find_template(views, name, engine, &block)
  19 + Array(views).each { |v| super(v, name, engine, &block) }
  20 + end
  21 + end
  22 + end
  23 + end
  24 +end
  25 +
  26 +

0 comments on commit 580ef28

Please sign in to comment.
Something went wrong with that request. Please try again.