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
;;; | |
;;; format-date | |
;;; | |
;;; a: 短い形式の曜日 | |
;;; A: 長い形式の曜日 | |
;;; b: 短い形式の月 | |
;;; B: 長い形式の月 | |
;;; d: 日(00〜59) # (0〜59) | |
;;; e: 和暦の年(01〜) # (1〜) | |
;;; E: 和暦の年(元, 02〜) # (元, 2〜) |
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
(defpackage :clisp-arglist | |
(:use :cl) | |
(:export :*arglist-list* :*arglist-map* :arglist)) | |
(in-package :cl-user) | |
(defparameter clisp-arglist:*arglist-list* | |
'((* &REST #:ARGS) | |
(+ &REST #:ARGS) | |
(- NUMBER &REST #:MORE-NUMBERS) |
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
#!/opt/local/bin/sbcl --script | |
(write-line "Hello, World!") | |
;; --script オプションを付ける | |
;; version 1.0.22 以降 | |
;; http://www.sbcl.org/manual/Shebang-Scripts.html | |
;; http://www.sbcl.org/manual/Saving-a-Core-Image.html | |
;; http://www.sbcl.org/manual/Support-For-Unix.html | |
;; http://www.sbcl.org/manual/Quit.html |
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
#!/opt/local/bin/clisp | |
(write-line "Hello, World!") | |
;; 普通に書いてOK | |
;; 日本語を書くときは -E UTF-8 オプションを付けた方が無難かも | |
;; http://clisp.cons.org/impnotes/quickstart.html#quickstart-unix | |
;; http://clisp.cons.org/impnotes/quit.html | |
;; http://clisp.cons.org/impnotes/image.html | |
;; http://clisp.cons.org/impnotes/shell.html |
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
#!/opt/local/bin/clisp -E UTF-8 | |
(defvar *hyperspec-path* "/opt/local/share/doc/lisp/HyperSpec-7-0/HyperSpec/Data/Map_Sym.txt") | |
(with-open-file (in *hyperspec-path* :direction :input) | |
(do ((line (read-line in nil nil) (read-line in nil nil))) | |
((not line)) | |
(and (string/= "../" line :end2 (min 3 (length line))) | |
(format t "~(~A~)~%" line)))) | |
;; |
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; Package: WINAPI -*- | |
(eval-when (:compile-toplevel :load-toplevel :execute) | |
(require "foreign") | |
(require "wip/winapi")) | |
(in-package "winapi") | |
(*define-dll-entry BOOL GetVolumeInformation (LPCSTR LPSTR DWORD (DWORD *) (DWORD *) (DWORD *) LPSTR DWORD) | |
"kernel32" "GetVolumeInformationA") |
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
--- hash.cc.orig 2009-11-06 12:25:18.075000000 +0900 | |
+++ hash.cc 2009-11-06 12:39:43.965625000 +0900 | |
@@ -445,8 +445,8 @@ | |
if (xhash_table_used (hash_table) > xhash_table_size (hash_table) * 8 / 10) | |
{ | |
int inc = xhash_table_rehash_size (hash_table); | |
- if (inc < 10) | |
- inc = min (max (xhash_table_size (hash_table) * 2 / 10, 10), 100); | |
+ if (inc < xhash_table_size (hash_table) / 2) | |
+ inc = xhash_table_size (hash_table) / 2; |
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) | |
#+ABCL (:shadow :y-or-n-p) | |
(:export #:pin | |
#:pon |
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
diff --git a/site-lisp/scala-mode.l b/site-lisp/scala-mode.l | |
index 956519b..a48879a 100644 | |
--- a/site-lisp/scala-mode.l | |
+++ b/site-lisp/scala-mode.l | |
@@ -75,11 +75,12 @@ | |
*scala-mode-syntax-table* | |
*scala-mode-indent-step*)) | |
-(defun string-join (strs delim) | |
- (let ((r nil)) |
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
--- symbol-macrolet.xml~ 2010-05-19 05:11:05.373625000 +0900 | |
+++ symbol-macrolet.xml 2010-05-19 05:12:34.483000000 +0900 | |
@@ -1,3 +1,17 @@ | |
+<?xml version="1.0" encoding="utf-8"?> | |
+<!DOCTYPE book [ | |
+<!ELEMENT book (chapter*)> | |
+<!ELEMENT chapter (title,type,arguments?,package?,description,seealso*,link*,section,file?)> | |
+<!ELEMENT title (#PCDATA)> | |
+<!ELEMENT type (#PCDATA)> | |
+<!ELEMENT arguments (#PCDATA)> |
OlderNewer