Skip to content

Instantly share code, notes, and snippets.

//this is for making the width smaller for web pages in the browser so you can
//more easily read the text
JavaScript:%20document.body.style.width%20=%20%22400px%22;%20void(0);
# Example (try uncommenting):
# resp.out.write("Hello! Your name: %s <hr />%s" % (req.get('name'), fetch('http://example.com').content))
from google.appengine.ext.webapp import template
from google.appengine.api import urlfetch
import base64
import urllib
language_engines = {
    'php': 'http://scriptlets-engine.appspot.com/run.php',
@drewlesueur
drewlesueur / Web_services.txt
Created November 2, 2009 21:50
Web services
Stuff that can be done all in a browser
mostly http (or websocket based) and more
services
Saving files
Gist.github.com
Running files
Scriptlets-engine.appspot.com
Codepad.org
Maps
<?
public resize_image($image, $w, $h) {
$ret = imagecreatetruecolor($w, $h); //main image is called thumb.
imagealphablending( $ret, false );
imagesavealpha( $ret, true );
imagecopyresampled($ret, $image, 0, 0, 0, 0, $w, $h, imagesx($image), imagesy($image));
//imageantialias($thumb,true);
return $ret;
}
@drewlesueur
drewlesueur / add_jquery.url
Created November 10, 2009 06:32
add jquery
javascript: var sCrIpT = document.createElement("script"); sCrIpT.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"; document.body.appendChild(sCrIpT); void(0);
@drewlesueur
drewlesueur / ignite_google_presentation.url
Created November 10, 2009 07:05
ignitify google pres
javascript: var sCrIpT = document.createElement("script"); sCrIpT.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"; document.body.appendChild(sCrIpT); $('<div id = "the_timer">hey</div>').css({'font-size' : '30pt','z-index' : '1000000','background-color': 'black', color : 'white','position': 'absolute' }).appendTo($(document.body)); void(0); void(0);
<iframe src="http://docs.google.com/present/embed?id=dcvpj4qq_338dc6p835k&interval=15&size=l" frameborder="0" width="700" height="559"></iframe>
@drewlesueur
drewlesueur / graph.html
Created November 14, 2009 23:50
Google chart
<script>
function graph(arr) {
}
</script>
@drewlesueur
drewlesueur / parser.html
Created November 23, 2009 07:32
parser
<script>
// a little for each thing
function each(arr, func) {
for (var key in arr) {
func(key,arr[key])
}
}
function is_alpha(str) {
/*
* jQuery JSON Plugin
* version: 2.1 (2009-08-14)
*
* This document is licensed as free software under the terms of the
* MIT License: http://www.opensource.org/licenses/mit-license.php
*
* Brantley Harris wrote this plugin. It is based somewhat on the JSON.org
* website's http://www.json.org/json2.js, which proclaims:
* "NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", a sentiment that