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
#!/usr/bin/env python3 | |
# Peter Simonyi 1 June 2012 | |
'''A binary clock: prints the current time (HHMMSS) in binary-coded decimal. | |
Each BCD digit takes one column; least-significant bits are at the bottom. | |
Example: at 21:14:59 (local time): | |
000001 | |
000110 | |
100000 | |
011011 |
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 | |
/** | |
* Jcrop image cropping plugin for jQuery | |
* Example cropping script | |
* @copyright 2008-2009 Kelly Hallman | |
* More info: http://deepliquid.com/content/Jcrop_Implementation_Theory.html | |
*/ | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') |
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
" Sample .vimrc file by Martin Brochhaus | |
" " Presented at PyCon APAC 2012 | |
" | |
" | |
" " ============================================ | |
" " Note to myself: | |
" " DO NOT USE <C-z> FOR SAVING WHEN PRESENTING! | |
" " ============================================ | |
" | |
" |
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 require_once 'user_agent.php'; ?> | |
<!-- Now try it. --> | |
<?php $userAgent = new UserAgent($_SERVER['HTTP_USER_AGENT']); ?> | |
<?php $ua = $userAgent->getBrowser(); ?> | |
<p> | |
<b>Your Browser:</b> | |
</p> | |
<?=$ua['name']?> <?=$ua['version']?> on <?=$ua['platform']?> |
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
<form class="form" action="<?=$_SERVER['PHP_SELF']?>" method="post" enctype="text/plain"> | |
<label for="name" accesskey="n" tabindex="1">Nombre</label> | |
<input type="text" id="name" name="name" value="" /> | |
<label for="email" accesskey="e" tabindex="2">E-Mail</label> | |
<input type="text" id="email" name="email" value=""/> | |
<label for="website" accesskey="w" tabindex="3">Sitio Web</label> | |
<input type="text" id="website" name="website" value=""/> | |
<label for="mensaje" accesskey="m" tabindex="4">Mensaje</label> | |
<textarea name="mensaje" id="mensaje" rows="10" cols="10"></textarea> | |
<div style="clear:both"></div> |
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
<form class="form" action="<?=$_SERVER['PHP_SELF']?>" method="post" enctype="text/plain"> | |
<label for="name" accesskey="n" tabindex="1">Nombre</label> | |
<input type="text" id="name" name="name" value="" /> | |
<label for="email" accesskey="e" tabindex="2">E-Mail</label> | |
<input type="text" id="email" name="email" value=""/> | |
<label for="website" accesskey="w" tabindex="3">Sitio Web</label> | |
<input type="text" id="website" name="website" value=""/> | |
<label for="mensaje" accesskey="m" tabindex="4">Mensaje</label> | |
<textarea name="mensaje" id="mensaje" rows="10" cols="10"></textarea> | |
<div style="clear:both"></div> |
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
<link href="c-style.css" rel="stylesheet" type="text/css" /> | |
<!--[if IE]><script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script> | |
<script src='../js/jquery.color-RGBa-patch.js'></script> | |
<script src='../js/script.js'></script> | |
<script src="jquery.form.js" type="text/javascript"></script> | |
<script src="jquery.validate.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#mensaje";).hide(); |
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 | |
date_default_timezone_set("America/Argentina/Buenos_Aires"); | |
/** | |
*---------------------------------------------------------------------------- | |
* Birthday | |
* | |
* reprecenta el la fecha proxima de cumpleaños de una persona basandose en su |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type = "text/javascript" src = "jquery-2.1.3.js"></script> | |
<title>Documento sin título</title> | |
</head> | |
<body> | |
<form id="form1" name="form1" method="post" action=""> | |
<p>Codigo |
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 | |
// incluye el archivo de conexion a la bd | |
require_once 'conexion.php'; | |
/** | |
* escapa los caracteres que permiten la iyeccion arbitraria de codigo sql | |
* para mas informacion ver la documentacion de la funcion addslashes | |
* http://php.net/manual/es/function.addslashes.php |