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
###Works | |
parameters: | |
price: 12 | |
###Doesn't work | |
parameters: | |
price: | |
euro: 12 |
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
$response = new Response(json_encode($data), 200, | |
array( | |
'Content-type'=> 'application/json', | |
) | |
); | |
return $response; |
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
<!--[if IE 9]> | |
<link href="{{ asset('bundles/bcgfinnder/css/ie.css') }}" type="text/css" rel="stylesheet" /> | |
<![endif]--> |
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 | |
//include 'conexion.php'; | |
$dir = '/Library/WowzaMediaServer-3.6.2/content'; | |
$files1 = scandir($dir); | |
//Devuelve los videos que hay en $dir | |
// print_r($files1); | |
$string1 = null; | |
$nombre_com_fecha=array(); | |
foreach ($files1 as $valor) | |
//itero en los archivos |
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> | |
<style type="text/css"> | |
img.displayed { | |
display: block; | |
margin-left: auto; | |
margin-right: auto } | |
</style> |
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 | |
date_default_timezone_set('America/Montevideo'); | |
$dir = 'videos'; | |
$files1 = scandir($dir); //Devuelve los videos que hay en $dir | |
//print_r($files1); | |
$string1 = null; | |
$nombre_com_fecha=array(); | |
foreach ($files1 as $valor) //itero en los archivos | |
{ |
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
console.log("here"); | |
$.getJSON("videos_ordenados.php", function (data) { | |
var obj = JSON.parse(data); | |
console.log (obj); | |
$.each(obj, function (key, video) { | |
var newVideo = '<p><font face="Helvetica Neue" color=red>' + video.Name + '</font><video src="http://10.0.1.41:1935/vod/mp4:' + video.Name + '.m4v/playlist.m3u8" controls="controls"></video></p>'; | |
$('#videoList').append(newVideo); | |
}); |
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
<div class="registration-form"> | |
<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | |
<div class="form-inputs"> | |
<%= f.input :email, required: false, autofocus: true %> | |
<%= f.input :password, required: false %> | |
<%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %> | |
</div> | |
<div class="form-actions"> | |
<%= f.button :submit, "Sign in" %> |
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
services: | |
validator.unique.valid_coupon: | |
class: Bcg\UtilsBundle\Validator\Constraints\ValidCoupon | |
tags: | |
- { name: validator.constraint_validator, alias: valid_coupon } |
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 Bcg\UtilsBundle\Validator\Constraints; | |
use Symfony\Component\Validator\Constraint; | |
use Symfony\Component\Validator\ConstraintValidator; | |
/** | |
* @Annotation | |
*/ |
OlderNewer