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
<?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
$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
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
add_action('admin_head', 'my_hack'); | |
function my_hack() { | |
echo '<style>.eventBritePluginPlug{ display: none !important; }</style>'; | |
} |
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 | |
$themes = array('wp-theme','wp-theme-2', 'wp-theme-3', 'font-awesome', 'icons', 'media-wp'); | |
$themesFilter = array_filter($themes, function($theme){ | |
return preg_match('/^wp/', $theme); | |
}); | |
print_r($themesFilter); |
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
var foo = JSON.parse('[{"Deal Name": "tenic", "Stage": "Invoice", "Income": 104000, "Currency": "US Dollar", "Responsible": "[email protected]", "Type": "Service B", "Created": "04/24/2017 05:22:28 pm", "Product": "", "Price": "", "Quantity": "", "ID": 9862, "Pipeline": "General", "":""}, {"Deal Name": "neojo", "Stage": "Create papers", "Income": 3000000, "Currency": "US Dollar", "Responsible": "[email protected]", "Type": "Service A", "Created": "04/24/2017 05:22:28 pm", "Product": "", "Price": "", "Quantity": "", "ID": 9864, "Pipeline": "General" }]'); |
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
var data = [ | |
{type: "a", income: 1}, | |
{type: "a", income: 1}, | |
{type: "e", income: 1}, | |
{type: "c", income: 1}, | |
{type: "d", income: 1}, | |
{type: "d", income: 1}, | |
{type: "d", income: 1}, | |
]; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Tabla</title> | |
<style media="screen"> | |
.color0{ background-color: #ddd; } | |
.color1{ background-color: teal; } | |
.color2{ background-color: green; } | |
.color3{ background-color: gold; } |
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
var colors = {x: y}; | |
for (h=0;h<24;h++){ | |
i=h*2; | |
val1 = eval("json."+(root+i));//concat strings and values to access h vars | |
val2 = eval("json."+(root+(i+1))); | |
if (val1 != null && val2 != null){ | |
table.append("<tr style=\"background-color:"+ colors[x] +"\"><td>"+formattedH(h)+":00 </td> <td id="+i+">"+val1+"</td><td id="+(i+1)+">"+val2+"</td></tr>"); | |
} | |
} |