In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
| #!/bin/bash | |
| # | |
| # NOTE: This must be run as root! | |
| # | |
| # Install necessary stuff to get fig running on a vanilla Ubuntu 14.04 image. | |
| # | |
| # This should really be put in some automated deployment system, but it's a | |
| # good reference point for trying out fig and docker on an AWS or similar cloud. | |
| # | |
| # You can also use this to ensure that your development machine is up and running |
More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies:
| #!/bin/bash | |
| # Source files so we can announce stuff | |
| . /mnt/apps/scripts/setenv.sh | |
| . /mnt/apps/scripts/hipchat_notify.sh | |
| if [ $(pidof -x deploy_if_new.sh | wc -w) -gt 2 ]; then | |
| echo "$(date +"%Y-%m-%d %H:%M:%S %Z") Cowardly exiting as deploy_if_new is already running" | |
| exit -1 | |
| fi |
| <div id="myElement">asdfa</div> | |
| <script> | |
| var element = document.querySelector('#myElement') | |
| element.addEventListener('dblclick', makeEditable, false) | |
| function makeEditable(e) { | |
| var editable = e.target, | |
| input = document.createElement('input') | |
| input.value = editable.textContent |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| var d=document,v;d.body.appendChild(v=d.createElement("video"));navigator.getUserMedia({video:1},function(s){v.src=URL.createObjectURL(s)}); |
As configured in my dotfiles.
start new:
tmux
start new with session name: