This file contains hidden or 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
| (function () { | |
| 'use strict'; | |
| angular | |
| .module('xtras') | |
| .factory('modalPopupService', service); | |
| service.$inject = ['']; | |
This file contains hidden or 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
| var res = $resource(ENV.API_URL+'/playlist/:id', null, { | |
| 'update': { method: 'PUT', params: {id: '@id'} } | |
| }); | |
| // usage | |
| res.update({ id: id }, {name: name }); | |
| // name will be in the Payload, id - in the URI |
This file contains hidden or 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
| git blame -L1080,+50 -- app/system/controllers/main.js |
This file contains hidden or 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
| lsof -i :80 # checks port 80 |
This file contains hidden or 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
| sips -Z 640 *.jpg |
This file contains hidden or 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
| # add in your .bash_profile | |
| export ANDROID_HOME=/Users/alexander/Library/Android/sdk/ | |
| export JAVA_HOME=$(/usr/libexec/java_home) |
This file contains hidden or 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
| cordova run --list |
This file contains hidden or 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
| #add to .bash_profile | |
| export PATH=${PATH}:/Users/{username}/Library/Android/sdk/platform-tools:/Users/{username}/Library/Android/sdk/tools/:/Users/alexander/Library/Android/sdk/build-tools/25.0.0/ | |
| # invoke android sdk manager | |
| android sdk | |
| # invoke android virtual device manager | |
| android avd |
This file contains hidden or 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
| ionic emulate android --target="nexus5_5.1.1" |
This file contains hidden or 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
| grep -v rootfs /proc/mounts > /etc/mtab |