This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js
See source code on GitHub: pixelhandler/journal.
# and whatever other gems you need | |
gem 'resque', '~> 1.24.1' | |
gem 'unicorn', '~> 4.6.2' |
This is a scaffold for setting up: an API with Rails and the ember-rails gem, persistence with Ember.Data, and a browser app using Ember.js
See source code on GitHub: pixelhandler/journal.
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
## | |
# replaces :blah: with an image with the appropriate emoji | |
all_emojis = [ | |
'+1', '-1', '100', '1234', '8ball', 'a', 'ab', 'abc', 'abcd', 'accept', | |
'aerial_tramway', 'airplane', 'alarm_clock', 'alien', 'ambulance', 'anchor', | |
'angel', 'anger', 'angry', 'anguished', 'ant', 'apple', 'aquarius', 'aries', | |
'arrow_backward', 'arrow_double_down', 'arrow_double_up', 'arrow_down', | |
'arrow_down_small', 'arrow_forward', 'arrow_heading_down', | |
'arrow_heading_up', 'arrow_left', 'arrow_lower_left', 'arrow_lower_right', |
## Puts a big annoying arrow in your window when you're not scrolled down, like a dummy | |
# | |
scrollAlert = $("<div id='scrolldown-arrow'>⬇</div>") | |
showing = false | |
body = $ document.body | |
win = $ window | |
doc = $ document |