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> | |
<!--[if IE]><script src="excanvas.js"></script><![endif]--> | |
<script src="jquery.js"></script> | |
<script> | |
function draw() { | |
function drawTile() { |
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
echo(""" | |
<style> | |
table { | |
border-collapse: collapse; | |
border: 1px solid black; | |
} | |
td { | |
border: 1px solid black; | |
width: 60px; | |
height: 60px; |
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
import math | |
def find_number(guess,n): | |
lo = 0 | |
hi = 999999 | |
while guess != n: | |
#lo, hi = (guess + 1, hi) if guess < n else (lo, guess - 1) | |
#this if else block replaces that one line. | |
if guess < n: | |
lo = guess + 1 | |
hi = hi |
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
function eua(str){ | |
return str.replace(/./g,function(o){ return '%' + o.charCodeAt(0).toString(16)} ) | |
} | |
euc("googlewave.com!w+sS5HWxwfH") |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="State Example5" height="1000"> | |
<Require feature="wave" /> | |
</ModulePrefs> | |
<Content type="html"> | |
<![CDATA[ | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> |
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> | |
<body style="width:1000px; height: 1000px;"> | |
<h1>Drop</h1> | |
<script> |
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
from google.appengine.api import urlfetch | |
import simplejson as json | |
self.response.out.write('hello world') | |
result = urlfetch.fetch("http://www.wikipedia.com") | |
if result.status_code == 200: | |
self.response.out.write(result.content) |
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
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript"> | |
//http://code.google.com/apis/maps/documentation/javascript/overlays.html#ImageMapTypes | |
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
<html> | |
<head> | |
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA-LQou8q_sKeS5aYUTmi6cBTwM0brOpm-All5BF6PoaKBxRWWERTLoTYiIZTo0Y148gT7RR7GgXyJLA"></script> | |
<script> | |
bounds = new GLatLngBounds( new GLatLng(-90, -180) | |
, new GLatLng(90, 180) | |
); | |
copyright = new GCopyright( 'your-copyright' | |
, bounds |
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
// jQuery plugin to easily implement autosave | |
// | |
// | |
// | |
// | |
;(function($) { | |
$.fn.typed = function(settings) { | |
var config = { | |
'callback': function(){}, |