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
const juegos = ['Assasins Creed ', 'GTA', 'Streets of Rage', 'AOE', 'BattleField']; | |
export default juegos; | |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- Cargat React --> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> | |
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> | |
<title>Document</title> |
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
/** | |
* Cristian Buitrago´s Weather API | |
* 17th Iteration | |
* Sample with "axios" nodejs | |
* Execute: nodejs | |
* Architectural style: async await | |
* method: GET | |
* Calls openweathermap's API(openweathermap.com/current for info) | |
*/ | |
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
/** | |
* Cristian Buitrago´s Weather API | |
* 17th Iteration | |
* Sample with "needle" in nodejs, with async await model | |
* Execute: browser | |
* Architectural style: Async await | |
* method: GET | |
* Calls openweathermap's API(openweathermap.com/current for info) | |
*/ |
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
/** | |
* Cristian Buitrago´s Weather API | |
* 16th Iteration | |
* Sample with "needle" with promises | |
* Execute: nodejs | |
* Architectural style: Promises | |
* method: GET | |
* Calls openweathermap's API(openweathermap.com/current for info) | |
*/ |
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 | |
//city model | |
class City extends Eloquent{ | |
protected $table="city"; | |
protected $primaryKey="city_id"; | |
public $timestamps = 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
<style> | |
$(document).ready(function () { | |
$.getJSON('paises', function (result) { | |
var data = $(result).map(function () { | |
return {value: this.country, id: this.country_id}; | |
}).get(); | |
$('#name').autocomplete({ |
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
$(document).ready(function() { | |
$( "#inicio" ).datepicker({ | |
"dateFormat":"yy-mm-dd" | |
}); | |
}); |
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
SELECT * | |
FROM departamentos | |
INTO OUTFILE 'c://users/asuspc/desktop/departamentos.csv' | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n'; |
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
/** | |
* Cristian Buitrago´s Weather API | |
* 15th Iteration | |
* Sample with Classic, old School´s XMLHttpRequest Promised Object, but Async Await model: Error Handling | |
* Execute: browser | |
* Architectural style: Async Await | |
* method: GET | |
* Calls openweathermap's API(openweathermap.com/current for info) | |
*/ |