Public Gists by fogus

Gravatar
Wed Oct 21 11:19:24 -0700 2009
1
2
3
"""
Simple forking echo server built with Python's SocketServer library. A more
Pythonic version of http://gist.github.com/203520, which itself was inspired
Gravatar
Fri Aug 07 05:22:50 -0700 2009
1
2
3
var Log = {
    elem: false,
    write: function(text){
Gravatar
Wed Aug 05 17:43:11 -0700 2009
1
2
3
(ns #^{:doc "Lazy map, a map whose values are evaluated lazily.
 
This library depends on the \"New new\" feature in Clojure,
Gravatar
Wed Aug 05 07:53:28 -0700 2009
1
2
3
(define format-row
  C G [#\~ #\A |L] [X|J] -> [(format-AS human X)|(format-row C G L J)]
  C G [#\~ #\S |L] [X|J] -> [(format-AS compu X)|(format-row C G L J)]
Gravatar
Wed Aug 05 07:48:58 -0700 2009
1
2
3
\
This code using sugar functions to implement something more close
to lisp macros.
Gravatar
Wed Aug 05 07:47:04 -0700 2009
1
2
3
Qi Core and ports
 
Functions that is in the core
Gravatar
Wed Aug 05 07:40:40 -0700 2009
1
2
3
\Main macro\
(qi::defmacro labels
     [Defs Code] -> (LET ((qi::*tc* 'false))
Gravatar
Fri Jul 17 19:35:30 -0700 2009
1
2
3
package retweetrec
 
import scala.xml.XML
Gravatar
Fri May 29 17:51:17 -0700 2009
1
2
3
#!/usr/bin/ruby
# Trivial little twitter script
# Pass it a list of names as command line arguments
Gravatar
Sun May 03 15:09:45 -0700 2009
1
2
3
(ns tiger
  (:import ( org.apache.commons.net.ftp FTP FTPClient))
  (:require [com.github.kyleburton.sandbox.ftp :as ftp])
Gravatar
Thu Apr 30 05:06:05 -0700 2009
1
2
3
(ns org.apache.http.examples
 "Basic HTTP Server.
A quick port of http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore/src/examples/org/apache/http/examples/ElementalHttpServer.java to Clojure"
Gravatar
Wed Apr 22 10:27:23 -0700 2009
1
2
3
;; a bit faster flatten
 
(defn flatten [x]
Gravatar
Fri Jan 23 09:16:08 -0800 2009
1
2
3
// Example for http://gist.github.com/51089
 
public class AsteroidTest {
Gravatar
Fri Jan 23 09:15:37 -0800 2009
1
2
3
// Example for http://gist.github.com/51089
 
public class CarTest {
Gravatar
Fri Jan 23 09:14:05 -0800 2009
1
2
3
// Totally stolen from http://logand.com/sw/jmultimethod/
 
// Multi.java
Gravatar
Thu Jan 01 19:04:03 -0800 2009
1
2
3
#!/bin/sh
 
# to post `cat file | gist.sh`
Gravatar
Wed Dec 31 11:32:34 -0800 2008
1
2
3
'''Digital image steganography based on the Python Imaging Library (PIL)
from http://wordaligned.org/articles/steganography
Any message can be hidden, provided the image is large enough. The message is
gist: 42089 zombies cl
Gravatar
Wed Dec 31 11:08:06 -0800 2008
1
2
3
(comment
Features:
- One monster type: Zombies!
gist: 42087 prolog in python
Gravatar
Wed Dec 31 11:05:06 -0800 2008
1
2
3
"""
This modules implements a rudimentary prolog engine. Its
purpose is to illustrate the use of continuations to program
Gravatar
Thu Nov 13 12:33:31 -0800 2008
1
2
3
/* merge sort in js */
function sort(a) {
  var mid = a.length>>1;