This file contains 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 tvShow = { | |
title: 'El Embarcadero', | |
seasons: 2, | |
watched: true | |
}; | |
var { title, watched } = tvShow; | |
console.log(title); //El embarcadero | |
console.log(watched); //true |
This file contains 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 [firstName, lastName] = 'Gisela Torres'.split(' '); | |
console.log(firstName); //Gisela | |
console.log(lastName); //Torres |
This file contains 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 animals = ['dog', 'cat', 'fish', 'horse', 'lion', 'bird']; | |
var [dog, , , , lion, ] = animals; | |
console.log(dog); //dog | |
console.log(lion); //lion |
This file contains 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 animals = ['dog', 'cat', 'fish', 'horse', 'lion', 'bird']; | |
console.log(animals[0]); //dog | |
console.log(animals[4]); //lion | |
console.log(animals[2]); //fish |
This file contains 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
{% extends 'base.html.twig' %} | |
{% block title %}Hello QueuesController!{% endblock %} | |
{% block body %} | |
<div class="row"> | |
<div class="col-lg-12 jumbotron"> | |
<h1>Azure Queue storage</h1> | |
<p class="lead">It's a service for storing large numbers of messages that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS. A single queue message can be up to 64 KB in size, and a queue can contain millions of messages, up to the total capacity limit of a storage account.</p> | |
</div> |
This file contains 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
<?php | |
namespace App\Service; | |
use MicrosoftAzure\Storage\Common\Exceptions\ServiceException; | |
use MicrosoftAzure\Storage\Queue\Models\PeekMessagesOptions; | |
use MicrosoftAzure\Storage\Queue\QueueRestProxy; | |
use Psr\Log\LoggerInterface; | |
class QueueService |
This file contains 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
<?php | |
namespace App\Controller; | |
use App\Service\QueueService; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Routing\Annotation\Route; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>{% block title %}Welcome!{% endblock %}</title> | |
{% block stylesheets %} | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" /> | |
{% endblock %} | |
</head> |
This file contains 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
{% extends 'base.html.twig' %} | |
{% block title %}Hello TablesController!{% endblock %} | |
{% block body %} | |
<div class="row"> | |
<div class="col-lg-12 jumbotron"> | |
<h1>Azure Table storage</h1> | |
<p class="lead">You can use Table storage to store flexible datasets like user data for web applications, address books, device information, or other types of metadata your service requires. You can store any number of entities in a table, and a storage account may contain any number of tables, up to the capacity limit of the storage account.</p> | |
</div> |
This file contains 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
<?php | |
namespace App\Service; | |
use MicrosoftAzure\Storage\Common\Exceptions\ServiceException; | |
use MicrosoftAzure\Storage\Table\Models\EdmType; | |
use MicrosoftAzure\Storage\Table\Models\Entity; | |
use MicrosoftAzure\Storage\Table\TableRestProxy; | |
use Psr\Log\LoggerInterface; | |
use Ramsey\Uuid\Uuid; |