Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Nov 20, 2011
1 parent 915ddcd commit 7ff43e8
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ group :http do
gem 'eventmachine'
gem "em-http-request"
gem "hiredis", "~> 0.3.0"
gem "em-synchrony", :require => ['em-synchrony', 'em-synchrony/em-http'], :git => "git@github.com:hornairs/em-synchrony.git"
gem "em-synchrony", :require => ['em-synchrony', 'em-synchrony/em-http'], :git => "https://github.com/igrigorik/em-synchrony.git"
gem "redis", :require => ["redis/connection/synchrony", "redis"]
end

group :server do
gem 'goliath'
gem 'eventmachine'
gem "hiredis", "~> 0.3.0"
gem "em-synchrony", :git => "git@github.com:hornairs/em-synchrony.git"
gem "em-synchrony", :git => "https://github.com/igrigorik/em-synchrony.git"
gem "redis", :require => ["redis/connection/synchrony", "redis"]
gem 'redis-scripted', :require => "redis/scripted"
end
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GIT
uuid

GIT
remote: git@github.com:hornairs/em-synchrony.git
remote: https://github.com/igrigorik/em-synchrony.git
revision: f07b2a139ba05a1eaf3559541f3584c73afe05b2
specs:
em-synchrony (1.0.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/stock_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def filled?(id)
end

def trade_count
$redis.zcard('trades')
$redis.zcard("trades_#{@stock_name}")
end

private
Expand Down
Binary file added public/janet.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions public/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,22 @@ img {
width:100%;
}

#header p,
#header h1,
#header h2 {
#header p, #header h1, #header h2 {
padding:.4em 15px 0 15px;
margin:0;
}
#header h1 {
float: left;
}
#header img {
display: block;
float: left;
width: 100px;
}
#header h2 {
display: block;
clear: both;
}
#menu ul {
clear:left;
float:left;
Expand Down
3 changes: 2 additions & 1 deletion views/application.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<body>

<div id="header">
<h1>Janet</h1>
<h1>Janet</h1>
<img src="/janet.jpeg">
<h2></h2>
<div id="menu">
<ul>
Expand Down
22 changes: 20 additions & 2 deletions views/graphs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,31 @@ class ChartView
renderTo: "graph"
events:
load: ->
#window.getNewData = setInterval self.getNewData, self.UPDATE_INTERVAL
window.getNewData = setInterval self.getNewData, self.UPDATE_INTERVAL

navigator:
enabled: false

rangeSelector:
buttonTheme:
fill: 'none'
stroke: 'none'
style:
color: '#039'
fontWeight: 'bold'
states:
hover:
fill: 'white'
select:
style:
color: 'white'
inputStyle:
color: '#039'
fontWeight: 'bold'
labelStyle:
color: 'silver'
fontWeight: 'bold'
selected: 1
buttons: [
count: 1
type: "second"
Expand Down Expand Up @@ -49,7 +68,6 @@ class ChartView

series: [
name: "#{stock} price"
type: "candlestick"
data: []
tooltip:
yDecimals: 2
Expand Down

0 comments on commit 7ff43e8

Please sign in to comment.