Skip to content

Instantly share code, notes, and snippets.

View ramayac's full-sized avatar
🏠
Working from home.

ramayac ramayac

🏠
Working from home.
View GitHub Profile
@ramayac
ramayac / html5canvas.html
Created July 8, 2011 13:51
Ejemplo sencillo/basico de página de HTML5 con elemento canvas
<html>
<head>
<script type="application/javascript">
function draw() {
var canvas = document.getElementById("canvas");
if (canvas.getContext) {
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect (10, 10, 55, 50);
@ramayac
ramayac / main.py
Created June 13, 2011 17:24
App Engine app to let two anonymous users talk to eachother via XMPP -- http://chatwithstrangers.appspot.com
#!/usr/bin/env python
import logging
from google.appengine.api import memcache
from google.appengine.api import xmpp
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import xmpp_handlers