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
;;; eldoc.el --- show function arglist or variable docstring in echo area | |
;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
;; 2005, 2006, 2007 Free Software Foundation, Inc. | |
;; Copyright (C) 2009 KOBAYASHI Shigeru <shigeru.kb@gmail.com> | |
;; Author: Noah Friedman <friedman@splode.com> | |
;; Maintainer: friedman@splode.com | |
;; Keywords: extensions |
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
#!/usr/bin/newlisp | |
# original source: | |
# http://frexx.de/xterm-256-notes/data/256colors2.pl | |
;; FIXME: | |
; (define (printf) (print (apply format (args)))) | |
; current newLISP `format' function cannot use. (v.10.1.7) | |
; (format "%2.2x" 0) => ERR | |
; |
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
#!/usr/bin/env newlisp | |
;;; Mandelbrot Set ASCII art (tested newLISP v.10.3.0) | |
;;; Original: (Common Lisp) | |
;; - http://groups.google.com/group/comp.lang.lisp/msg/d786bbde308e8175 | |
;; - http://bc.tech.coop/blog/040811.html | |
;;; Usage: | |
;; $ ./mandelbrot.lsp |
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
;; lambda.lsp - newLISPでラムダ計算をしてみるテスト | |
;; newLISPの以下の性質を利用することで、動的束縛を静的束縛のように振舞わせる | |
;; * 読取器が大文字小文字を区別すること | |
;; * ラムダ式がオープン(リストのサブタイプ)であり、変更が容易なこと | |
;; * 大文字から始まるシンボルを展開する関数(expand)が用意されている | |
;; 当然ながら、変数が重複するとシンボルの展開がおかしくなるのでエラー | |
;; 場合によってはラムダ式の仮引数が展開されて妙なことに (しかもエラーの通知がない) |
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
;; @module libmagic.lsp | |
;; @description determine file type (use magic library) | |
;; @author KOBAYASHI Shigeru (kosh) <shigeru.kb@gmail.com> | |
;; @version 0.2 | |
;;; Usage: | |
;; (load "libmagic.lsp") | |
;; (Magic:magic-file "libmagic.lsp") | |
;; => "Lisp/Scheme program 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
;; -*- Mode: Lisp; Syntax: Common-Lisp -*- | |
;;; Package Management | |
(in-package :cl-user) | |
(defpackage :hige | |
(:use :cl | |
:drakma | |
:cl-ppcre) | |
#+ABCL (:shadow :y-or-n-p) |
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
#!/usr/bin/sbcl --script | |
;;; Usage: | |
;; | |
;; $ sbcl --script play.lisp --play hige:pon | |
;; or | |
;; $ clisp play --play hige:pon | |
(require :asdf) | |
(push (merge-pathnames "code/lisp/drakma-1.1.0/" (user-homedir-pathname)) asdf:*central-registry*) |
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
#| | |
;; lispkwd.l | |
;; ■参考リンク | |
;; Lisp でキーワードの色付け (キーワードファイルは ~/etc/lisp) | |
;; http://hie.s64.xrea.com/xyzzy/note/major_mode.html#lisp-mode | |
;; xyzzy Lisp のシンボルテーブルは大文字小文字を区別するが | |
;; Common Lisp はデフォルトでは setq/SETQ のように大文字小文字を区別しない. |
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
;; newLISP v.10.1.12 on Linux IPv4 UTF-8, execute 'newlisp -h' for more info. | |
;;; *** Load from Network | |
;; | |
;; (context 'Foo) | |
;; (load "http://gist.github.com/362201.txt") | |
;; (println "Context: " (context)) | |
;; -> Context: MAIN | |
;;; *** Load from Filesystem |