This README outlines the details of collaborating on this Ember application.
You will need the following things properly installed on your computer.
{ | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"editor.wordWrapColumn": 100, | |
"files.exclude": { | |
"**/.coverage": true, | |
"**/.yardoc": true, | |
"**/build/**": true, | |
"**/node_modules/**": true, | |
"**/tmp": true |
import Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
export default class extends Component { | |
@action | |
onClick() { | |
console.log('clicked 1'); | |
} | |
} |
{ | |
"app/models/*.js": { | |
"type": "model", | |
"alternate": "app/adapters/{}.js" | |
}, | |
"app/adapters/*.js": { | |
"type": "adapter", | |
"alternate": "app/serializers/{}.js" | |
}, | |
"app/serializers/*.js": { |
{ | |
"app/initializers/*.js": { | |
"type": "initializer" | |
}, | |
"app/models/*.js": { | |
"type": "model", | |
"alternate": "app/adapters/{}.js" | |
}, | |
"app/adapters/*.js": { | |
"type": "adapter", |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'button', | |
click() { | |
alert('single'); | |
}, | |
doubleClick() { |
{ | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"Ember.debug($1);$0" | |
], | |
"description": "Log output to console" | |
}, | |
"Warn to console": { | |
"prefix": "warn", |
/** | |
* Finds all number pairs in given array whose sum equals to 10 | |
* @param {Array} inputArray Array for search in | |
* @returns {Array} Resulting array of number pairs | |
*/ | |
function findInArray (inputArray) { | |
var results = []; | |
if (inputArray && inputArray.length) { |
#!/usr/bin/env bash | |
# prepare | |
sudo apt-get update | |
sudo apt-get install -y build-essential git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev mc libfontconfig | |
# install nvm | |
curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash | |
source ~/.profile |
#!/usr/bin/env bash | |
# prepare | |
sudo apt-get update | |
sudo apt-get install -y build-essential git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
# install nodejs | |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc |