Skip to content

Instantly share code, notes, and snippets.

View 0GiS0's full-sized avatar
📹
Now on YouTube!

Gisela Torres 0GiS0

📹
Now on YouTube!
View GitHub Profile
var tvShow = {
title: 'El Embarcadero',
seasons: 2,
watched: true
};
var { title, watched } = tvShow;
console.log(title); //El embarcadero
console.log(watched); //true
var [firstName, lastName] = 'Gisela Torres'.split(' ');
console.log(firstName); //Gisela
console.log(lastName); //Torres
var animals = ['dog', 'cat', 'fish', 'horse', 'lion', 'bird'];
var [dog, , , , lion, ] = animals;
console.log(dog); //dog
console.log(lion); //lion
var animals = ['dog', 'cat', 'fish', 'horse', 'lion', 'bird'];
console.log(animals[0]); //dog
console.log(animals[4]); //lion
console.log(animals[2]); //fish
{% 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>
<?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
<?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;
<!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>
{% 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>
<?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;