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
CREATE TABLE cliente ( | |
`id` int(11) NOT NULL, | |
`name` varchar(128) COLLATE utf8_unicode_ci NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | |
INSERT INTO cliente VALUES(1, 'Coca-Cola'); | |
INSERT INTO cliente VALUES(3, 'IBM'); | |
INSERT INTO cliente VALUES(4, 'Logitech'); | |
INSERT INTO cliente VALUES(2, 'Toyota'); |
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
persona = { | |
nombre: "kyary", | |
edad: 24, | |
twitter: "twitter.pamyurin" | |
} | |
puts "desea añadir una clave y valor al hash? : " | |
resp = gets.chomp | |
if resp == "si" | |
puts "cual es el nombre de la nueva clave?? : " | |
resp_clave = gets.chomp.to_sym |
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>"); | |
} | |
} |
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 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
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
<?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
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
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( |
OlderNewer