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
| class AsynctestController < ApplicationController | |
| require "em-synchrony/em-http" | |
| def test | |
| EventMachine.synchrony do | |
| http = EventMachine::HttpRequest.new("https://www.google.co.uk/").get | |
| render :json => {result: http.response} |
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
| --- | |
| - hosts: all | |
| remote_user: ubuntu | |
| vars: | |
| app_repo: [email protected]:****/****.git | |
| app_id: my_app | |
| app_folder: /home/ubuntu/my_app | |
| log_folder: /home/ubuntu/my_app_logs | |
| tasks: | |
| - name: git clone |
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
| - 1 | |
| the image uses the full width or full height of the div | |
| we always see all the image, nothing is cropped | |
| <div class="container"></div> | |
| .container { | |
| width: 500px; | |
| height: 300px; | |
| border: 1px solid black; | |
| background-image: url("http://placehold.it/200x400"); | |
| background-repeat: no-repeat; |
OlderNewer