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
var conf = { | |
first_find: "spell=1\" class=p>", | |
last_find: "</a>", | |
correct: "" | |
}; | |
CmdUtils.CreateCommand({ | |
name: "spellcheck", | |
takes: {"Text To check": noun_arb_text}, | |
preview: function(pblock, statusText) { | |
var text = statusText.text |
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
// Ubiquity code from http://ubiquity.appjet.net/ | |
// BY: ip-get | |
// Title: ip-get | |
/* Description: Get your Ip address */ | |
CmdUtils.CreateCommand({ | |
name: "ip-get", | |
preview: function( pblock ) { | |
jQuery.get("http://json-through.appjet.net/ip", function (ip) { | |
pblock.innerHTML = "Your ip is "+ip; |
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
// Quotes from: http://quote.appjet.net | |
// Ubiquity code from http://ubiquity.appjet.net/ | |
// BY: quote | |
// Title: quote | |
/* Description: Add quote to anything from http://quote.appjet.net */ | |
var quote = "Made by Mattewfl.com"; | |
function get_quote (b) { | |
b = b || function () {}; |
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
# uses http://code.google.com/p/python-twitter/ | |
import twitter | |
import time | |
def main(): | |
global uesr, password | |
twit = twitter.Api(username=user, password= password) | |
twit.SetCache(None) | |
while 1: | |
try: |
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 query (domain, obj) { | |
var url = "http://domai.nr/api/json/search?q="+domain | |
jQuery.get(url, null, function (j) { | |
j = Utils.decodeJson(j); | |
var text = ""; | |
for(var a =0;a< j.results.length;a++) { | |
text += "<p style='color:"; | |
text += j.results[a].availability == "taken" ? "red" : "green"; | |
text += "'>"; | |
text += j.results[a].domain + j.results[a].path; |
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
#!/bin/bash | |
files=( main ) # should be file name without suffix, suffix should be .c | |
target="program" | |
setting="-D_VEX_BOARD" | |
if [ -z $1 ] | |
then | |
echo "$0 [build | download | clean]" |
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
#!/bin/sh - | |
"exec" "python" "-O" "$0" "$@" | |
__doc__ = """Tiny HTTP Proxy. | |
This module implements GET, HEAD, POST, PUT and DELETE methods | |
on BaseHTTPServer, and behaves as an HTTP proxy. The CONNECT | |
method is also implemented experimentally, but has not been | |
tested yet. |
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
// http://www.xs4all.nl/~weegen/eelis/analogliterals.xhtml | |
#ifndef ANALOGLITERALS_HPP | |
#define ANALOGLITERALS_HPP | |
namespace analog_literals { | |
typedef unsigned int uint; | |
// Symbols |
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
# make a little code system using a lot of dir | |
sub makeMess { | |
my $dep = shift; | |
if ($dep != 0) { | |
for(my $c=0; $c<10; $c++) { | |
mkdir("$c"); | |
chdir("$c"); | |
makeMess($dep-1); | |
chdir(".."); |
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
// the time between bits about 9600 bauds | |
#define bitDelay 101 | |
void printByte(char out) { | |
digitalWrite(7, HIGH); // start bit | |
delayMicroseconds(bitDelay); | |
for(char mask=0x01; mask; mask <<=1) { | |
digitalWrite(7, out & mask ? HIGH : LOW); // I am not sure which way this should go | |
delayMicroseconds(bitDelay); |
OlderNewer