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
function search_wolframalpha($query){ | |
$url2 = 'http://www.wolframalpha.com/input/?i='.urlencode($query); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_POST, 0); | |
//curl_setopt($ch, CURLOPT_REFERER, $ref); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_AUTOREFERER, 1); |
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><body><h1>googlewave.com!w+DUX6159GV</h1> | |
<ul id="root"></ul> | |
<script> | |
//cheap hackish attempt to make this a fast quick and dirty prototype | |
//plz fix it up! | |
function attach(parentid, contentid, content){ | |
var parent = document.getElementById(parentid); | |
if(!parent){ |
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
//worlds first bookmarklet to pause Google Wave searches. | |
(function(){ | |
if(!window.elitist){ | |
for(var i in window){ | |
if(window[i]=="display") break; | |
} | |
for(var k in window){ | |
if(typeof window[k] == "function"){ | |
var iidx = window[k].toString().indexOf(".style["+i+"]"); |
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
import wavehttp | |
import random | |
import time | |
import urllib | |
import Cookie | |
import json | |
#http://stackoverflow.com/questions/1694507/difference-between-operator-in-js-and-python/1694524#1694524 | |
def xor32bit(a, b): |
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
encode = function(obj){ | |
//simple partial JSON encoder implementation | |
if(window.JSON && JSON.stringify) return JSON.stringify(obj); | |
var enc = arguments.callee; //for purposes of recursion | |
if(typeof obj == "boolean" || typeof obj == "number"){ | |
return obj+'' //should work... | |
}else if(typeof obj == "string"){ | |
//a large portion of this is stolen from Douglas Crockford's json2.js | |
return '"'+ |
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
javascript:(function(){for(var q=document.getElementsByTagName("div"),l=q.length;l-- && q[l].getAttribute("dc") != "rootThread";);document.body.innerHTML=q[l].innerHTML;if(window.print)window.print();})() |
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
import httplib | |
import pickle | |
import urllib | |
import Cookie | |
conn = httplib.HTTPSConnection("wave.google.com") | |
#conn.set_debuglevel(8) | |
statefile = "state.txt" | |
state = {} |
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
loadjson( | |
[{"type":"rect","id":"J0GL","fill":"#ff0000","fill-opacity":1,"height":130,"stroke":"#000000","stroke-opacity":0.3,"stroke-width":1,"width":78,"x":266.5,"y":59.5},{"type":"rect","id":"SCJ6","fill":"navy","fill-opacity":1,"height":140,"stroke":"#000000","stroke-opacity":0.3,"stroke-width":3,"width":139,"x":177.5,"y":95.5},{"type":"rect","id":"VDFw","fill":"#ff0000","fill-opacity":1,"height":297.7100688979722,"rotation":309.1226073933569,"stroke":"#000000","stroke-opacity":1,"stroke-width":1,"width":89.82693776343137,"x":528,"y":86.5},{"type":"rect","id":"K3K4","fill":"#ff0000","fill-opacity":1,"height":98,"stroke":"#000000","stroke-opacity":1,"stroke-width":1,"width":179,"x":425.5,"y":370.5},{"type":"path","id":"skb2","fill":"none","fill-opacity":1,"path":"M159.5,406.5L159.5,408.5L159.5,411.5L159.5,414.5L159.5,417.5L159.5,424.5L159.5,431.5L159.5,440.5L159.5,450.5L159.5,458.5L159.5,466.5L162.5,473.5L162.5,477.5L162.5,477.5L163.5,477.5L163.5,476.5L165.5,474.5L166.5,467.5L166.5,466.5L168.5,461.5","stro |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="SVG-edit" height="780" author="SVG-edit Developers"> | |
<Require feature="wave" /> | |
</ModulePrefs> | |
<Content type="html"> | |
<![CDATA[ | |
<base href="http://svg-edit.googlecode.com/svn-history/r1142/branches/2.4/editor/svg-editor.html"> |
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
//this file hacked to be svg-edit only and work with JSONP | |
/* | |
* SVG Icon Loader 2.0 | |
* | |
* jQuery Plugin for loading SVG icons from a single file | |
* | |
* Copyright (c) 2009 Alexis Deveria | |
* http://a.deveria.com | |
* | |
* Apache 2 License |