This file contains hidden or 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
#include <stdio.h> | |
#define ___VERSION 406001 | |
#include "gambit.h" | |
#include "somescheme.h" | |
#define SCHEME_LIBRARY_LINKER ____20_somescheme__ | |
___BEGIN_C_LINKAGE |
This file contains hidden or 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
(defpackage #:hello-world-sdl | |
(:use :cl) | |
(:export :main)) | |
(in-package :hello-world-sdl) | |
(defparameter *screen-width* 640) | |
(defparameter *screen-height* 480) | |
(defparameter *bg-color* sdl:*black*) | |
(defparameter *text-color* sdl:*white*) |
This file contains hidden or 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
(defun atom? (x) | |
(not (listp x))) | |
(defun lat? (x) | |
(cond | |
((null x) t) | |
((atom? (car x)) (lat? (cdr x))) | |
(t nil))) | |
(defun member? (a lat) |
This file contains hidden or 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 gevent | |
from gevent import monkey | |
from BeautifulSoup import BeautifulSoup | |
import os | |
import urllib2 | |
monkey.patch_all() | |
front_page = "http://www.reddit.com/r/fffffffuuuuuuuuuuuu/" |
This file contains hidden or 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
from gevent import monkey | |
from gevent import wsgi | |
monkey.patch_all() | |
PORT = 8080 | |
SIMPLE_PAGE = """<html><head><title>Simple Page</title></head><body><h1>Hello World</h1><p>Simple Gevent Page</p></body></html>""" | |
def application(env, start_response): |
NewerOlder