Skip to content

Commit ad04d19

Browse files
author
Soeren Klett
committed
init gggreplays
1 parent 1d730a0 commit ad04d19

21 files changed

+41
-28
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# Ignore all logfiles and tempfiles.
1414
/log/*.log
1515
/tmp
16+
nohup.out
1617

1718
# Ignore emacs poop
1819
*~
@@ -31,6 +32,7 @@ coverage
3132
config/ey_services_config_local.yml
3233
config/secrets.yml
3334
config/s3.yml
35+
config/initializers/recaptcha.rb
3436

3537
# Ignore production config magic
3638
cookbooks

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
web: bundle exec unicorn -p3000
1+
web: bundle exec unicorn -p80
22
log: tail -f -n0 log/development.log
33
juggernaut: juggernaut --port 5300

app/assets/javascripts/angular.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ gg.run(['$rootScope', '$window', '$http', function($rootScope, $window, $http) {
8585
$window.gg.state.apply(false);
8686
}, true);
8787

88-
gg.settings.api_host = ($window.gon != undefined) ? $window.gon.global.api_host : '127.0.0.1:9292';
88+
console.log('angular.js !#! : window.gon, window.gon.global.api_host')
89+
console.log($window.gon != undefined)
90+
console.log($window.gon.global.api_host)
91+
92+
// TODO SKLETT DANGEROUS WORKAROUND
93+
gg.settings.api_host = ($window.gon != undefined) ? 'gggreplays.com:9292' : 'gggreplays.com:9292';
94+
// gg.settings.api_host = ($window.gon != undefined) ? $window.gon.global.api_host : '127.0.0.2:9292';
95+
96+
8997

9098
// Finally, just default window.gon to an empty object if it's not defined.
9199
if(typeof $window.gon == 'undefined')

app/mailers/problem_mailer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class ProblemMailer < ActionMailer::Base
2-
default :from => "dsjoerg@ggtracker.com"
2+
default :from => "gggreplays@gmail.com"
33

44
def simple_problem(subject, problem)
55
@problem = problem
6-
mail(:to => 'dsjoerg@ggtracker.com', :subject => subject)
6+
mail(:to => 'gggreplays@gmail.com', :subject => subject)
77
end
88
end

app/mailers/report_mailer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class ReportMailer < ActionMailer::Base
2-
default :from => "dsjoerg@ggtracker.com"
2+
default :from => "gggreplays@gmail.com"
33

44
def simple_report()
5-
mail(:to => 'dsjoerg@ggtracker.com', :subject => "User report for #{Date.today()}")
5+
mail(:to => 'gggreplays@gmail.com', :subject => "User report for #{Date.today()}")
66
end
77

88
def esdb_report()
9-
mail(:to => 'dsjoerg@ggtracker.com', :subject => "ESDB report for #{Date.today()}")
9+
mail(:to => 'gggreplays@gmail.com', :subject => "ESDB report for #{Date.today()}")
1010
end
1111
end

app/mailers/welcome_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class WelcomeMailer < ActionMailer::Base
2-
default :from => "dsjoerg@ggtracker.com"
2+
default :from => "gggreplays@gmail.com"
33

44
def welcome_buddy(user)
55
mail(:to => user.email, :subject => "Welcome to GGTracker")

app/views/home/_go_pro.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
It's $5/month, <a class="action button" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q4LPUP7WZQ3ZE&<% if current_user.present? %>custom=<%= current_user.id %><% end %>">sign up for GGTRACKER PRO</a></li>
1818
</p>
1919
<br><br><br><br><br><br><br>
20-
<p class="small">Players who are currently Grandmaster are entitled to GGTracker Pro for free. Just email dsjoerg at ggtracker dot com or <a href="http://twitter.com/ggtracker">tweet</a>.</p><br>
20+
<p class="small">Players who are currently Grandmaster are entitled to GGTracker Pro for free. Just email dsjoerg at ggtracker dot com or <a href="http://twitter.com/GGGReplays">tweet</a>.</p><br>
2121
<p class="small">We also offer an <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3QMACJDPHS4EL&custom=<% if current_user.present? %>custom=<%= current_user.id %><% end %>">Annual Subscription</a> for $40/year.</p><br>
2222
<p class="small">If GGTracker Pro isn't for you, you can still help by telling three friends. &nbsp;&nbsp; (Hat tip <a href="http://www.twitch.tv/tumescentpie">TumescentPie</a>)</p>

app/views/home/_hiring.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Now we're building a next-generation automated coaching system, starting with StarCraft.
77
<br><br>
88
<p style="text-align: center">
9-
<a id="go_pro" class="action button" href="mailto:dsjoerg@ggtracker.com">APPLY VIA EMAIL</a>
9+
<a id="go_pro" class="action button" href="mailto:gggreplays@gmail.com">APPLY VIA EMAIL</a>
1010
</p>
1111
<br><br>
1212

@@ -54,7 +54,7 @@
5454
<br>
5555
<br><br>
5656
<p style="text-align:center">
57-
<a id="go_pro" class="action button" href="mailto:dsjoerg@ggtracker.com">OK, this is interesting, let's email</a>
57+
<a id="go_pro" class="action button" href="mailto:gggreplays@gmail.com">OK, this is interesting, let's email</a>
5858
</p>
5959
<br>
6060
<br>
@@ -70,7 +70,7 @@
7070
<p id="dsjoerg">
7171
<b>Who is this David Joerg guy.</b>
7272
<br>
73-
I'm GGTracker's founder, David Joerg (<a href="http://linkd.in/dsjoerg">linkedin</a>). I got my Computer Science degree from Harvard. Ten years ago I joined a small team to build what is now a <a href="http://twosigma.com">top automated trading firm</a>. Before that, I co-founded an award-winning venture-backed mobile city guide company. The Kansas City Barbeque Society certified me as a judge in 2007. I used to play keyboards for Levi K and the Robotics. My wife and two kids and I live in <a href="http://www.youtube.com/watch?v=aOxoCi4wCmI">Brooklyn</a>.
73+
GGTracker's founder, David Joerg (<a href="http://linkd.in/dsjoerg">linkedin</a>). I got my Computer Science degree from Harvard. Ten years ago I joined a small team to build what is now a <a href="http://twosigma.com">top automated trading firm</a>. Before that, I co-founded an award-winning venture-backed mobile city guide company. The Kansas City Barbeque Society certified me as a judge in 2007. I used to play keyboards for Levi K and the Robotics. My wife and two kids and I live in <a href="http://www.youtube.com/watch?v=aOxoCi4wCmI">Brooklyn</a>.
7474
</p>
7575

7676
<br><br>

app/views/home/credits.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div id="static">
77
<div class="content">
88
<div class="static_inner">
9-
<p>Development:<br><a href="mailto:dsjoerg@ggtracker.com">David Joerg</a> (@dsjoerg)<br><a href="mailto: mr at impaled dot org">Marian Rudzynski</a> (@effekt, Master of the Universe)</p>
9+
<p>Development:<br><a href="mailto:gggreplays@gmail.com">David Joerg</a> (@dsjoerg)<br><a href="mailto: mr at impaled dot org">Marian Rudzynski</a> (@effekt, Master of the Universe)</p>
1010
<p>Design: <a href="http://www.bernatfortet.com/">Bernat Fortet</a></p>
1111
<p>sc2reader library: <a href="https://github.com/GraylinKim/sc2reader/">Graylin Kim</a></p>
1212
<p>Auto-uploader: <a href="https://sites.google.com/site/sc2gears/">András Belicza</a></p>
@@ -15,7 +15,7 @@
1515
<p>Some icons: <a href="http://iconmonstr.com/">iconmonstr</a></p>
1616
<p>A great many Starcraft-related images: Blizzard Entertainment</p>
1717
<br><br>
18-
<p>If you live near New York City and you love to code, maybe you should work for GGTracker? <a href="mailto:dsjoerg@ggtracker.com">Drop me a line</a>.</p>
18+
<p>If you live near New York City and you love to code, maybe you should work for GGTracker? <a href="mailto:gggreplays@gmail.com">Drop me a line</a>.</p>
1919
</div>
2020
</div>
2121
</div>

app/views/home/developers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<p>Also there is an <a href="/api">API</a>.</p>
1515

16-
<p>Have a question? Email me at <a href="mailto:dsjoerg@ggtracker.com">dsjoerg@ggtracker.com</a> or tweet <a href="https://twitter.com/ggtracker">@ggtracker</a>.</p>
16+
<p>Have a question? Email me at <a href="mailto:gggreplays@gmail.com">gggreplays@gmail.com</a> or tweet <a href="https://twitter.com/GGGReplays">@ggtracker</a>.</p>
1717
</div>
1818
</div>
1919
</div>

0 commit comments

Comments
 (0)