This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Object.extend({ | |
attrs: {}, | |
attributes: function(){ | |
var attrs = this.get('attrs'); | |
var _this = this; | |
for (var attribute in attrs) { | |
(function(){ |
This file contains hidden or 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
FROM ubuntu:14.04 | |
MAINTAINER Alvin Crespo <[email protected]> | |
RUN apt-get update | |
RUN apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common python-software-properties | |
RUN apt-get clean | |
# Install Rbenv | |
RUN git clone git://github.com/sstephenson/rbenv.git /root/.rbenv |
This file contains hidden or 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
{ | |
"name": "fly-components", | |
"version": "0.0.0", | |
"description": "The default blueprint for ember-cli addons.", | |
"directories": { | |
"doc": "doc", | |
"test": "tests" | |
}, | |
"scripts": { | |
"start": "ember server", |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
headers: ['Scare', 'Total'], | |
data: [{ scare: 'Sullivan', total: 100232 }, { scare: 'Randall', total: 99905 }, { scare: 'Ranft', total: 79405 }], | |
scare: 'Jon', | |
total: 2 | |
}); |
This file contains hidden or 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
package controllers | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"time" | |
"todos/models" |
This file contains hidden or 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
# Reference: http://blog.izs.me/post/87525128203/how-to-install-node-js-and-npm-on-ubuntu-14-04 | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
# This step is optional. At the moment Chris Lea’s PPA will give you npm 1.4.9, | |
# which is recent enough to have no showstopper # problems (the version that comes | |
# with apt, 1.3.10, is not terrible but has some known bugs). |
This file contains hidden or 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
// Components :: Panels | |
// Panels | |
// | |
// Panels are one the more versatile component within the Fly framework. They are used to provide visual sectioning for content. Panels provid a subtle border, and content placed within a ``.fly-panel-body`` is provided with padding. | |
// | |
// Styleguide 3.25 | |
// Basic Panel | |
// |
This file contains hidden or 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
// fly-components/addon/components/fly-panel.js | |
import Ember from 'ember'; | |
import layout from '../templates/components/fly-panel'; | |
export default Ember.Component.extend({ | |
tagName: 'div', | |
classNames: ['fly-panel'], | |
layout: layout, | |
header: null, | |
subHeader: null, |
This file contains hidden or 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
// ui/app/pods/cio-insights/component.js | |
import Ember from 'ember'; | |
import FlyPanelComponent from 'fly-components/components/fly-panel'; | |
import { computedReads, notEmpty } from 'cio/utils/ember-helpers'; | |
export default FlyPanelComponent.extend({ | |
classNames: ['cio-insight'], | |
event: null, | |
filter: null, |
This file contains hidden or 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
git clone [email protected]:emberjs/website ember-api-1-13 | |
cd ember-api-1-13 | |
git checkout v1.13.7 | |
bundle install | |
middleman | |
open http://localhost:4567/api/ |