Skip to content

Instantly share code, notes, and snippets.

View hidsh's full-sized avatar

yakshaver hidsh

View GitHub Profile
@hidsh
hidsh / gist:1246636
Created September 28, 2011 00:16 — forked from miyamuko/gist:998518
#xyzzy でプロセス関連の API
#|
テスト
(progn
(call-process "dir" :show :hide)
(call-process "date" :show :hide)
(get-child-processes))
;=> (#S(process-entry exe-file "dir.exe" process-id 1188 parent-process-id 4660
module-id 0 default-heap-id 0 threads 1
pri-class-base 8 usage 0 flags 0)
;;; -*- Mode: Lisp; Package: WINAPI -*-
;;; winapi.l
;;; Last updated: <2005/05/25 07:02:58 +0900>
(eval-when (:compile-toplevel :load-toplevel :execute)
(require "foreign")
(require "wip/winapi"))
(in-package "winapi")
(provide "api")
//
// C# で汎関数
// http://d.hatena.ne.jp/p-nix/20090226/p1
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@hidsh
hidsh / .emacs
Created October 7, 2011 08:37
.emacs
;;;
;;; .emacs
;;;
(push "~/elisp" load-path)
(transient-mark-mode nil)
;; C-h --> BS
(keyboard-translate ?\C-h ?\C-?)
(global-set-key "\C-h" nil)
@hidsh
hidsh / discrete.el
Created October 7, 2011 08:39
discrete.el
;;;; -*- mode: lisp-interaction; syntax: elisp; coding: iso-2022-7bit -*-
;;;;
;;;; discrete elisp
;;;;
;;;; $Id: discrete.el,v 1.56 2006/06/25 11:08:37 gnrr Exp gnrr $
;;;;
;;;; Filename: discrete.el
;;;; Last modified: Fri Aug 25 2006 23:41:35 JST
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@hidsh
hidsh / discrete.el
Created October 7, 2011 08:39
discrete.el
;;;; -*- mode: lisp-interaction; syntax: elisp; coding: iso-2022-7bit -*-
;;;;
;;;; discrete elisp
;;;;
;;;; $Id: discrete.el,v 1.56 2006/06/25 11:08:37 gnrr Exp gnrr $
;;;;
;;;; Filename: discrete.el
;;;; Last modified: Fri Aug 25 2006 23:41:35 JST
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@hidsh
hidsh / Makefile
Created October 12, 2011 04:37
RE2 Makefile for cygwin + g++4.5.3 -- mod
# Copyright 2009 The RE2 Authors. All Rights Reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
all: obj/libre2.a obj/so/libre2.so
# to build against PCRE for testing or benchmarking,
# uncomment the next two lines
# CCPCRE=-I/usr/local/include -DUSEPCRE
# LDPCRE=-L/usr/local/lib -lpcre
@hidsh
hidsh / gist:641a31a4d5d7cc20e9ac
Created October 12, 2011 07:18
manual install asdf package to sbcl
$sbcl
(require 'asdf)
(pushnew "D:\\shishido\\tmp\\asdf\\iterate\\" asdf:*central-registry* :test 'equal)
(asdf:operate 'asdf:load-op :iterate)
(pushnew "D:\\shishido\\tmp\\asdf\\cl-utilities\\" asdf:*central-registry* :test 'equal)
(asdf:operate 'asdf:load-op :cl-utilities)
(pushnew "D:\\shishido\\tmp\\asdf\\alexandria\\" asdf:*central-registry* :test 'equal)
(asdf:operate 'asdf:load-op :alexandria)
(pushnew "D:\\shishido\\tmp\\asdf\\cl-irregsexp\\" asdf:*central-registry* :test 'equal)
@hidsh
hidsh / discrete.l
Created October 18, 2011 01:35
discrete.l for xyzzy
;;; -*- Mode: Lisp; Package: editor -*-
;;;
;;; discrete.l
;;;
(provide "discrete")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;@@@ sils 関係
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@hidsh
hidsh / .xyzzy
Created October 18, 2011 01:35
.xyzzy
;;; -*- Mode: Lisp; Package: editor -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; .xyzzy ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;