Disclaimers:
- I'm hoping this will help you understand so you can help us improve our documentation.
- This is simplified version, i'm ignoring some details which are unimportant for discusing this.
| require.config({ | |
| baseUrl: '/backbone-tests/', | |
| paths: { | |
| 'jquery' : '/app/libs/jquery', | |
| 'underscore' : '/app/libs/underscore', | |
| 'backbone' : '/app/libs/backbone', | |
| 'mocha' : 'libs/mocha', | |
| 'chai' : 'libs/chai', | |
| 'chai-jquery' : 'libs/chai-jquery', | |
| 'models' : '/app/models' |
| // your app | |
| myapp = angular.module('myapp', []); | |
| myapp.directive('userView', function () {...}); | |
| myapp.factory('userApi', function () {...}); |
| #!/bin/bash | |
| # the "vboxsf" file system is not available. Please verify that | |
| sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions" |
| #!/bin/bash | |
| sudo apt-get –purge remove mysql-server | |
| sudo apt-get –purge remove mysql-client | |
| sudo apt-get –purge remove mysql-common | |
| sudo apt-get autoremove | |
| sudo apt-get autoclean |
| /** | |
| * Enable completion tracking in Moodle (check on 2.7, 2.8 don't know how does it relates to other versions) | |
| * 1. Site administration > Advanced features > Completion tracking - enable completion tracking | |
| * 2. Administration > Course administration > Course completion | |
| */ |
| truncate mdl_course_modules_completion; | |
| or | |
| completion_info->delete_all_completion_data(); |
| # http://zalas.eu/running-behat-in-parallel-with-selenium-grid/ | |
| find features/ -iname '*.feature' | parallel --gnu 'bin/behat {}' || exit 1 | |
| java -jar selenium-server-standalone.jar -role node -hub http://localhost:4444/grid/register | |
| # behat.yml | |
| default: | |
| extensions: | |
| Behat\MinkExtension\Extension: |
| function phplint(){ | |
| dir="$@"; | |
| if [ $# -eq 0 ] | |
| then | |
| echo "No arguments supplied"; | |
| return; | |
| fi | |
| find $dir -name '*.php' | xargs -n1 php -l | |
| } |
| # get list of HEADs | |
| git reflog | |
| # reset to the HEAD number | |
| git reset --hard HEAD@{1} | |
| # show stash contents | |
| git stash show -p stash@{1} | |