- Go to http://boot2docker.io/ and install boot2docker for your system.
- Run
boot2docker init
from the command line. - Install the custom boot2docker image (with guest additions):
curl http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso > ~/.boot2docker/boot2docker.iso
- Share
/Users
with the docker vm:VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
- You can start docker with:
boot2docker up
- This should work now (list your
/Users
directory):boot2docker ssh "ls /Users"
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
#Eg. let's say you have this path | |
#something/abc/123.file | |
#something/ccc | |
#something/bbb.file | |
#running this script with the arguments: | |
#module.py something /user/peter/destination will result in directories: | |
#destination/abc | |
#destination/ccc | |
#To be created, and after that symbolic links will be created: |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
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
this.route("company", function(){ | |
this.route("index", { path: "/" }, function(){ | |
this.route("show", { path: "/:company_id"}); | |
}); | |
this.route("users". { path: "/:company_id/users"}) | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
actions: { | |
updateAttr() { | |
this.set('otherattr', Math.random()); | |
} | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
actions: { | |
updateAttr() { | |
this.set('otherattr', Math.random()); | |
} | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
bodyFlag: false, | |
actions: { | |
swapBody() { | |
let body = ''; | |
if(this.get('bodyFlag')) { | |
body = '<h1>Some body!!!</h1>'; |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
OlderNewer