Skip to content

Instantly share code, notes, and snippets.

pos(go).
pos(jail).
pos(park_place).
pos(boardwalk(santa_cruz)).
ui_space(P) :- pos(P).
ui_title('Monopoly!!!!!').
piece(dog).
player(x).
player(o).
#domain player(P).
next(x,o).
next(o,x).
first_player(x).
{ happens(mark(P,C),T) } :-
#!/usr/bin/python
import sys
import aifc
import os
import re
## parameters
FPS = 24
% This program is intended to be used with LPARSE / SMODELS
% see: http://www.tcs.hut.fi/Software/smodels/
%%%%
%%%% EXAMPLE STORY
%%%% (generated with the constraints shown at the very end of the file)
%% REQUIREMENT
% Tell me a story about an Alice, a Bob, and an Eve. I'd like to see Eve be
#!/usr/bin/python
import socket
import subprocess
import sys
try:
HOST = sys.argv[1]
PORT = int(sys.argv[2])
except:

Idea

Provide a web-like application via SMS so that people without computers can record and share data with other people without computers. Build on the request/response model of the web to build a few simple-yet-powerful, wiki-inspired apps.

Inspiration

My vision of what somebody's fluffy project at Singularity University seemed to be: http://www.youtube.com/watch?v=MdXfab3eHcY

App Profiles

package org.hackerdojo.shutterpost;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.UnsupportedCharsetException;
import org.apache.http.HttpResponse;
#!/usr/bin/python
from __future__ import with_statement
import base64
import PyV8
import time
from twisted.application import service, internet
from twisted.web import server, resource, client
from twisted.internet import threads
from urllib import unquote
function app(env) {
while(true) {
sleep(0.25);
log("<3");
}
return {
status : 200,
headers : {"Content-Type":"text/plain"},
body : ["cats love this stuff!"]
};
#!/usr/bin/python
from __future__ import with_statement
import base64
import PyV8
import time
from twisted.application import service, internet
from twisted.web import server, resource, client
class EvalResource(resource.Resource):