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 re | |
import web | |
import wolframalpha | |
import urllib | |
def search(query): | |
surch = wolframalpha.WolframAlpha(query) | |
for rs in surch.results: | |
uri = /?i="+query | |
uri2 = urllib.quote(uri) |
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
<gator> | |
[.load] | |
.source | |
.eng(engine()) | |
.dict(dict()) | |
.dicty #A simple handler for the dict plugin | |
.math | |
.sys | |
.g3(self) #A _self feature was added after a bunch of python lovers complained XD | |
[/] |
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
<gator> | |
[.load] | |
.source | |
.eng(engine()) | |
.dict(dict()) | |
.dicty #A simple handler for the dict plugin | |
.sys | |
[/] | |
engine(){ |
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
<gator> | |
[.load] | |
.source #This is a new module in 3, which is best run for people messing with the eng functions. | |
.eng(engine()) | |
.sys | |
.math | |
[/] | |
#Function | |
engine(){ |
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
<gator> | |
[.load] | |
.errory | |
.dict | |
.dicty | |
[/] | |
$env = "env()" | |
env(){ |
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
<gator> | |
[.load] | |
.byte | |
.audio(mp3) | |
.audio(aif) | |
.adioctrl | |
.randy | |
[/] |
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
if x == 1: | |
do.something() | |
elif x == 2: | |
do.something() | |
else: | |
pass | |
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
if x=1: | |
orif x=2: | |
do.something() |
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
<gator> | |
[.load] | |
.webify | |
.servy | |
.nettools | |
[/] | |
$port = "8080" #Make a global variable with our port number | |
g.init(var,empty,$maps) #Make a global unwritten (non-env) variable ready for our map storage |
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
<gator> | |
[.load] | |
.webify | |
.servy | |
..cdnpak | |
.nettools | |
[/] | |
site = "http://mysite.com" |
OlderNewer