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
#include <stdio.h> | |
int main() { | |
float total[5] = { 1.5, 2.4, 2.1 }; | |
float totalAux[5]; | |
float resultado; | |
int divide = 0; | |
printf("Ingresa el número entre cual dividiras tus datos: "); |
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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<title>Three.js</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
body { | |
background-color: #FFFFFF; | |
margin: 0px; | |
overflow: hidden; |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<title>HTML5 : Canvas</title> | |
<script type='text/javascript'> | |
function loadCanvas() { | |
var canvas = document.getElementById('canvas'); | |
var graph = canvas.getContext('2d'); | |
graph.fillStyle = "rgba(200, 200, 0, 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
<form id="form1" name="form1" method="post" action=""> | |
<table width="331" border="0"> | |
<tr> <td width="124">Ingrese el número</td> | |
<td width="197"><input type="text" name="numero" id="numero" /></td> | |
</tr> | |
<tr> <td><input type="submit" name="baceptar" id="baceptar" value="Generar" /> </td></tr> | |
</table> | |
<? if ($_REQUEST['baceptar']!= ""){ | |
if ($_REQUEST["numero"] != "") { | |
$resultado = $_REQUEST['numero']; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mi primera APP</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> | |
</head> | |
<body> |
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
- Otra libreria para problemas con IE con CSS3 http://css3pie.com/ | |
- http://html5demos.com/ | |
- mediaqueri.es | |
- www.simplegrid.info | |
- http://960.gs/ | |
- http://cssr.ru/simpliste/ | |
- http://blog.koalite.com/2012/01/diseno-web-sensible-y-grids-css/ | |
- http://simpliste.ru/en/ | |
testear resoluciones - http://screenqueri.es/ | |
www.responsinator.com |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; } | |
#map_canvas { margin: auto 0 auto 0; } | |
</style> |
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 http = require('http'), | |
util = require('util'), | |
formidable = require('formidable'), | |
server; | |
server = http.createServer(function(req, res) { | |
if (req.url == '/') { | |
res.writeHead(200, {'content-type': 'text/html'}); | |
res.end( | |
"<div align='center'>"+ |
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
Ejemplos de código CI + Mongo | |
Buscar un usuario y ordenar por datetime descendentemente. | |
<?php | |
$collection = "school"; | |
$query = $this->mongo_db->where(array('user' => $idUser))->order_by(array('datetime' => 'desc'))->get($collection); | |
?> |
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 | |
$handle = fopen("test.csv", "r"); | |
$columns = fgetcsv($handle, $max_line_length, ","); | |
if ($columns != "") { | |
foreach ($columns as &$column) { | |
$column = str_replace(".","",$column); | |
echo $column; | |
} | |
echo "<br />"; |