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
public class Hola | |
{ | |
public static void main() | |
{ | |
System.Console.Writeline("Aca Esto"); | |
} | |
} |
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
$args = array( | |
'post_type' => 'post', | |
'tax_query' => array( | |
'relation' => 'OR', | |
array( | |
'taxonomy' => 'category', | |
'field' => 'slug', | |
'terms' => array( 'cat1' ), | |
), | |
array( |
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 | |
add_action( 'init', 'set_cookies_banner' ); | |
function set_cookies_banner() { | |
$banner_id = 1; | |
if (isset($_GET['banner_id']) && is_numeric($_GET['banner_id'])) { | |
$banner_id = $_GET['banner_id']; | |
} |
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
meses = { | |
"ENERO" => [0], | |
"FEBRERO" => [0], | |
"MARZO" => [0], | |
"ABRIL" => [0], | |
"MAYO" => [0], | |
"JUNIO" => [0], | |
"JULIO" => [0], | |
"AGOSTO" => [0], | |
"SEPTIEMBRE" => [0], |
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
update wp_options set option_value = '<aqui debe ir la url/ip>' where option_name = 'home' or option_name = 'siteurl'; |
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 | |
$cod_item = limpiar($_POST['cod_item']); | |
$sql = "SELECT * FROM content WHERE code = '$cod_item'"; | |
$result = $con->query($sql) or die ($con->error); | |
if ($result->num_rows > 0) { | |
} |
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 | |
$uploaddir = trim(ABSPATH, '/') . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR; | |
$attachments = []; | |
foreach ($_FILES as $i => $data) { | |
$uploadfile = $uploaddir . basename($data['name']); | |
if (move_uploaded_file($data['tmp_name'], $uploadfile)) { | |
$attachments[$i] = $uploadfile; | |
} | |
} |
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 nombre, apellido, MIN(edad) AS edad FROM personas GROUP BY nombre, apellido |
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 | |
function allow_contrib_upload() { | |
$contrib = get_role( 'contributor' ); | |
$contrib->add_cap( 'upload_files' ); | |
} | |
add_action( 'admin_init', 'allow_contrib_upload', 11 ); |
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 | |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; | |
// The Query | |
query_posts( 'posts_per_page=3&paged=' . $paged ); | |
// The Loop | |
while ( have_posts() ) : the_post(); | |
echo ' |