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 | |
$query = new WP_Query(array( | |
"post_type" => "evento", | |
"cat" => 2, | |
"post__not_in" => array( get_the_id() ), | |
"showposts" => 4 | |
)); | |
if ($query->have_posts()) { | |
while ($query->have_posts()) { $query->the_post(); | |
the_title(); |
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 | |
$query = new WP_Query(array( | |
"showposts" => 10 | |
)); | |
if ($query->have_posts()) { | |
while ($query->have_posts()) { $query->the_post(); | |
the_title(); | |
echo "<hr>"; | |
} | |
} |
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
$(document).ready(function() { | |
$(".submit_btn_enviar").click(function(evt) { | |
evt.preventDefault(); | |
var postid = $(this).attr('data'); | |
var id = jQuery("#idpost-" + postid).val(); | |
alert(id); |
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 | |
/* | |
Template Name: Plantilla trabaja con nosotros | |
*/ | |
get_header(); | |
$args_puestos_trabajo = array( | |
'post_type' => 'trabajo', | |
'order' => 'ASC', | |
'posts_per_page' => -1, |
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
var https = require('https'); | |
var search = 'my way calvin harris'; | |
var type = 'track'; | |
// Traemos los datos | |
var request = https.get("https://api.spotify.com/v1/search?q=" + search + "&type=track", function(response) { | |
var output = ''; | |
response.on('data', function (result) { | |
// Guardamos los datos recibidos en una variable | |
output += result; |
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
<!-- Traemos los estilos de Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<!-- Ingresamos una simulación de alguna publicación --> | |
<div class="panel panel-primary"> | |
<div class="panel-heading">La Kimberly</div> | |
<div class="panel-body"> | |
Me volvieron a dejar en visto :( #soloquedallorar | |
</div> | |
</div> |
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 React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
function BuscarSpotify(busqueda) { | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function(){ | |
if (xhr.readyState === XMLHttpRequest.DONE) { | |
if (xhr.status === 200) { |
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 React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<div className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> |
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
var app = angular.module("myApp", ["ngRoute"]); | |
app.config(function($routeProvider){ | |
$routeProvider | |
.when("/home", { | |
controller: "inicio", | |
templateUrl: "home.html" | |
}) | |
.when("/nosotros/:name", { | |
controller: "nosotros", |
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
<html ng-app> | |
<head> | |
<title>Lista de tareas</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script> | |
<style> | |
.tachar { text-decoration: line-through; } | |
</style> | |
</head> | |
<body ng-init="homework = []"> |