Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import Controller from '@ember/controller'; | |
| import { isEmpty } from '@ember/utils'; | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| value1 = isEmpty({}); | |
| value2 = isEmpty({'length': 0}); | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| { | |
| Afghanistan: 'AF', | |
| Albania: 'AL', | |
| Algeria: 'DZ', | |
| Andorra: 'AD', | |
| Angola: 'AO', | |
| Anguilla: 'AI', | |
| 'Antigua and Barbuda': 'AG', | |
| Argentina: 'AR', | |
| Armenia: 'AM', |
| #!/bin/sh | |
| # | |
| # Mac OSX Adblocker Script for IPv4 | |
| # Description: Blocks ads using system hosts file /private/etc/hosts, Ad-Domains would be redirected to 0.0.0.0 | |
| # Author: Daniel Hochleitner | |
| # Created: 10.09.2015 | |
| # Use: sudo ./adblock_hosts.sh | |
| # Get original hosts file from /private/etc/hosts |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| alias gs='git status' | |
| alias gb='git branch' | |
| alias gpfo='git push -f origin' |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |