This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This pre-commit hook looks for `fdescribe`, `fcontext`, `fit`, `fspecify` and `fexample` in the | |
# staged files and exits with an error code of 1 if there are such changes. | |
# | |
STATUS=0 | |
DESCRIBEFILES=$(git diff --staged -G"^\s*fdescribe\(" --name-only | wc -l) | |
if [ $DESCRIBEFILES -gt 0 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
save: function() { | |
// Update the item | |
var dateString = this.get('dateString'), | |
hour = this.get('hour'), | |
minute = this.get('minute'), | |
period = this.get('period'), | |
timezone = this.get('timezone'), | |
item = this.get('item'); | |
// Let's convert the hour back to 24-hour format... | |
if (period === 'am' && hour === 12) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm list | |
[email protected] /Users/son/git/esplorio/frontend | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├─┬ [email protected] | |
│ │ │ └─┬ [email protected] | |
│ │ │ ├─┬ [email protected] | |
│ │ │ │ └── [email protected] | |
│ │ │ ├── [email protected] |
We have a data sync controller:
- Let the user store data about their travel locally (generated by another part of the app)
- Let the user upload the local data to our backend endpoint
- Let the user pull extra travel data from our webservice when they are online
- The extra data from the webservice would eventually be merged with the local data and the user can view both at the same time
Our questions are:
- How would you implement the sync controller with those data flows?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@box637:~/esplorio-frontend$ npm test | |
> [email protected] test /home/ubuntu/esplorio-frontend | |
> ember test | |
version: 0.2.7 | |
A new version of ember-cli is available (1.13.1). To install it, type ember update. | |
Could not find watchman, falling back to NodeWatcher for file system events. | |
Visit http://www.ember-cli.com/#watchman for more info. |
EmberJS resources:
- Main EmberJS website
- ember-cli - command-line tools for project setup and deployment
- ember-cli-deploy - lightning-fast deployment of Ember to redis/S3 included in e
ember-cli
. You can find an example of a Redis-backed Flask-based Ember frontend endpoint I wrote here. An exampledeploy.js
file that Esplorio uses can be found here - For those interested in Google Map integration, you can check this out (only compatible with Ember 1.13 for now - we skipped the latest version since 2.0 is coming up real soon)
- For those interested in Ember server-side rendering, you can check out fastboot
- A list of websites built with Ember can be found here
- Esplorio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`esplor.io` frontend deployment steps: | |
- Point `esplor.io` to `frontend` | |
- Update nginx on `frontend` to identify itself as `esplor.io` | |
- Make sure that `esplor.io` is now in the CORS whitelist of `staging` | |
`esplor.io` deployment backout steps: | |
- Point `esplor.io` back at `web1` | |
- Update nginx on `frontend` to identify itself as `frontend.esplor.io` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment: | |
Request Method: GET | |
Request URL: http://localhost:8000/auth/login/flickr | |
Django Version: 1.6.8 | |
Python Version: 2.7.6 | |
Installed Applications: | |
('opbeat.contrib.django', |
NewerOlder