Dependencies managed with Bower:
npm install -g bower
bower install
...Then open up index.html in a browser.
mkdir temp | |
cd temp | |
git clone git@yourDomain.unfuddle.com:yourDomain/yourRepoName.git | |
cd yourRepoName/ | |
git remote rm origin | |
git remote add origin https://yourUsername@bitbucket.org/yourUsername/yourNewRepoName.git | |
git remote show origin | |
git push origin master | |
cd ../.. | |
rm -rf temp |
<h1>Using both small and large grids</h1> | |
<ul class='small-block-grid-2 large-block-grid-4'> | |
<li><img src='http://placekitten.com/g/200/220' /></li> | |
<li><img src='http://placekitten.com/g/200/200' /></li> | |
<li><img src='http://placekitten.com/g/200/280' /></li> | |
<li><img src='http://placekitten.com/g/200/250' /></li> | |
<li><img src='http://placekitten.com/g/200/240' /></li> | |
<li><img src='http://placekitten.com/g/200/270' /></li> | |
<li><img src='http://placekitten.com/g/200/230' /></li> |
# install nvm | |
# see https://github.com/creationix/nvm | |
# be sure to restart your terminal after this step | |
curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
# install Node | |
# use nvm. if you cannot, download binary from Node website http://nodejs.org/download/ | |
nvm help | |
nvm ls-remote | |
# install a recent version |
Dependencies managed with Bower:
npm install -g bower
bower install
...Then open up index.html in a browser.
{ | |
"locals": [ | |
"foobar" | |
], | |
"dependencies": { | |
"jb55/domready": "*" | |
}, | |
"scripts": [ | |
"index.js" | |
] |
Cordova handles A LOT of cross platform issues for us, but not all of them. We can simplify these by using a YML or JSON config file to keep track of the differences so our code can stay slim and maintainable.
This concept is based on this article which I found from this SO answer.
// https://github.com/InQBarna/WebIntent | |
function testIntent () { | |
console.log('testIntent...'); | |
if (window.device) { | |
console.log('DEVICE mode; testing web intent: startActivity'); | |
var address = 'edmonton alberta'; | |
CDV.WEBINTENT.startActivity({ | |
action: CDV.WEBINTENT.ACTION_VIEW, |
/** | |
* You can use this in a model or afterModel hook... | |
* see http://emberjs.com/api/data/classes/DS.Model.html#method_eachRelationship | |
* | |
* Not really tested or sure if this is a good idea... just had the thought and wanted to record it. | |
*/ | |
model.eachRelationship(function(name, relationship) { | |
if (relationship.kind === 'hasMany' && relationship.options.async) { | |
this.get(name).reload(); | |
} |