Skip to content

Instantly share code, notes, and snippets.

%% TODO
% - put simplificatin in the loop for bitlist_add
% - get per-step test cases
% - make the top level tests pass
%%%%
%%%% test cases
%%%%
;; complete project: http://github.com/rndmcnlly/cfml
;;;;
;;;; top-level-style defintions (try redefining them while the song is playing)
;;;;
(define (bump)
(literal 1/2 '((0 3 0 1 1/2))))
#!/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):
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
from twisted.internet import threads
from urllib import unquote
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;

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

#!/usr/bin/python
import socket
import subprocess
import sys
try:
HOST = sys.argv[1]
PORT = int(sys.argv[2])
except:
% 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 sys
import aifc
import os
import re
## parameters
FPS = 24