Recursos del Curso Desarrollo Frontend con Developer Tools en Escuela IT
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
Route::get('edit', function() { | |
// fetch our post, and it's associated categories | |
$post = Post::with('cats')->where('id', '=', $id)->first(); | |
// fetch all of our categories | |
$cats = Cat::all(); | |
// create our empty array | |
$post_cats = array(); |
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
angular.module('Demo', ['ionic', 'Demo.controllers', 'Demo.services', 'ngCordova']) | |
.run(function ($ionicPlatform, sqliteService) { | |
$ionicPlatform.ready(function () { | |
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard | |
// for form inputs) | |
if (window.cordova && window.cordova.plugins.Keyboard) { | |
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
cordova.plugins.Keyboard.disableScroll(true); |
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
/* | |
* Translated default messages for the jQuery validation plugin. | |
* Locale: ES | |
*/ | |
jQuery.extend(jQuery.validator.messages, { | |
required: "Este campo es obligatorio.", | |
remote: "Por favor, rellena este campo.", | |
email: "Por favor, escribe una dirección de correo válida", |
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
$.each(response.errors, function(i, row) { | |
var fila = $('<tr/>'); | |
$.each(row, function(name, value) { | |
$('<td/>', { | |
text: value | |
}).appendTo(fila); | |
}); | |
fila.appendTo('#errors_in_modal'); | |
}); |
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
<?php | |
$objeto = new StdClass; | |
$objeto->key1 = 0; | |
$objeto->key2 = 0; | |
$objeto->key3 = 0; | |
$objeto->key4 = 0; | |
echo count((array) $objeto); |
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
/* | |
You can now create a spinner using any of the variants below: | |
$("#el").spin(); // Produces default Spinner using the text color of #el. | |
$("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. | |
$("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). | |
$("#el").spin({ ... }); // Produces a Spinner using your custom settings. | |
$("#el").spin(false); // Kills the spinner. |
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
module.exports = function (grunt) { | |
require('jit-grunt')(grunt); | |
grunt.initConfig({ | |
less: { | |
development: { | |
options: { | |
compress: true, | |
yuicompress: true, |
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
=================================================================================== | |
Laravel 5 | |
=================================================================================== | |
Configuración del Proyecto | |
-> Asignarle un nombre al proyecto: Para llevar a cabo esto debemos colocarnos en nuestro directorio principal del proyecto y | |
utilizar el comando siguiente: php artisan app:name Nombre_de_la_App, con este comando, Artisan se encargara de asignarle | |
el nombre a nuestra aplicación. | |
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
Instalacion de Homestead | |
========================================== | |
1. Descargar Vagrant y Virtual Box; Realizar la instalación. | |
2. Posteriormente descargar mediante el comando $git clone la instanciación | |
$ git clone [email protected]:laravel/homestead.git Nombre_de_Instancia | |
3. Acceder al directorio y lanzar el script init.sh. |