This is an addition to a full guide on SailsJS + Mocha, but updated for SailsJS 0.10.x
The guide does not belong to me, only this change to support SailsJS 0.10.x using code originally found in the guide written by it's author.
This is an addition to a full guide on SailsJS + Mocha, but updated for SailsJS 0.10.x
The guide does not belong to me, only this change to support SailsJS 0.10.x using code originally found in the guide written by it's author.
| You can use these settings on your RubyMine [http://rubymine.org]. Here are some RubyMine Live Templates. |
| gem 'rails', '4.1.1' | |
| # Use jquery as the JavaScript library | |
| gem 'jquery-rails' | |
| # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks | |
| gem 'turbolinks' | |
| gem 'jquery-turbolinks' | |
| # Gems for twitter LESS -> CSS and JS support | |
| gem 'execjs' |
$ grep -lR "__TVOS_PROHIBITED" . | while read L; do echo "## $L"; echo "\`\`\`obj-c"; grep "__TVOS_PROHIBITED" "$L"; echo "\`\`\`"; echo; done
AVAudioSessionPortOverrideSpeaker __TVOS_PROHIBITED = 'spkr'
AVAudioSessionCategoryOptionAllowBluetooth __TVOS_PROHIBITED = 0x4,
AVAudioSessionCategoryOptionDefaultToSpeaker __TVOS_PROHIBITED = 0x8,| <?php | |
| // This example is for testing php with libcurl | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); | |
| curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| 1. Highlight a recommended option, | |
| 2. Allow users to switch currency (€/$/£) | |
| 3. Allow users to switch pricing monthly/yearly | |
| 4. Keep the entire pricing plan area clickable | |
| 5. Use slider to calculate how much a user would save | |
| 6. Provide free first month for good engagement | |
| 7. Prominently highlight testimonials prominently | |
| 8. Repeating call to action on top and bottom | |
| 9. Sell benefits instead of features | |
| 10. Indicate that users can cancel any time |
| # Object Interface in Ruby. | |
| # Suggestion of implementation for object-oriented interfaces. | |
| # | |
| # ===== Example | |
| # | |
| # bike = AcmeBicycle.new | |
| # bike.change_gear(1) | |
| # # => AbstractInterface::InterfaceNotImplementedError: AcmeBicycle needs to implement 'change_gear' for interface Bicycle! | |
| # | |
| # See:: http://www.metabates.com/2011/02/07/building-interfaces-and-abstract-classes-in-ruby |
| name: Test | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # Similar to docker-compose.yml but not the same, 🤷♂️ | |
| services: |