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
# import ViewControllerNameWindow.h in the file .h (header) | |
# add property in the controller | |
@property (nonatomic, strong) ModalController *modal; | |
# Create method for lauch the modal view in the current content view controller .m | |
- (IBAction)btnShowModal:(id)sender { | |
//Show wifi settings to customer |
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
/* | |
* New Ticket Jquery | |
* Is a file for get content of div#new-ticket | |
* And send to backend with laravel. | |
**/ | |
$(document).on('ready', begin); | |
function begin() | |
{ |
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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use App\MayestroModels\Ticket; |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
// switch | |
let personaje: String = "Lobo Estepario" | |
switch personaje{ | |
case "Caballero": |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
// condiciones | |
var puntos = 0 | |
if puntos > 0{ | |
print("Ganaste") |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
//Iterar | |
// ForEach recomendado para colecciones | |
// rangos define una coleccion, en este caso de enteros | |
for i in 1...3 { | |
print("hola \(i)") |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
print("El valor de numero es ") | |
let y: Int = 120 |
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
# ---------------------------------------------------------------------- | |
# ROOT/ folder .htaccess | |
# ---------------------------------------------------------------------- | |
# Laravel Note: | |
# Note: Laravel is designed to protect your application code, | |
# and local storage by placing only files that are necessarily | |
# public in the public folder. It is recommended that you either | |
# set the public folder as your site's documentRoot (also known as a web root) | |
# or to place the contents of public into your site's root directory | |
# and place all of Laravel's other files outside the web root. |
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 | |
class ArticuloController extends BaseController { | |
public function index() | |
{ | |
$articulos = Articulo::orderBy('created_at', 'DESC')->get(); | |
$total = Articulo::count(); | |
// load the view and pass the nerds | |
return View::make('articulos.index')->with(array('articulos' => $articulos, 'total' => $total)); |