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
#!/bin/sh | |
# PROVIDE: www | |
# REQUIRE: LOGIN FILESYSTEMS | |
# KEYWORD: shutdown | |
. /etc/rc.subr | |
name="www" | |
rcvar="${name}_enable" |
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
;;;building a C shared library, | |
;;;and calling it in Common Lisp with CFFI | |
(require :asdf) | |
(asdf:load-system :cffi) | |
(defpackage :cffi-user | |
(:use :common-lisp :cffi)) | |
(in-package :cffi-user) |
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
;;;save sbcl core as an executable | |
;;;http://www.sbcl.org/manual/Saving-a-Core-Image.html | |
(sb-ext:save-lisp-and-die "myexec" ;file name | |
:executable t ;create a standalone executable | |
:toplevel 'main ;function to run when core is resumed | |
:purify t) ;purifying gc to move dynamic objs to static space |
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
;;vecto example | |
;;draw text, circle, and some lines | |
(require :asdf) | |
(asdf:load-system :vecto) | |
(defparameter *font* "/home/billy/.fonts/Consola.ttf") | |
(defun draw-it (file) | |
(vecto:with-canvas (:width 200 :height 200) |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function draw () { | |
var canvas = document.getElementById("my_canvas"); | |
var ctx = canvas.getContext("2d"); | |
rect(ctx); | |
triangle(ctx); //on square | |
circle(ctx); //on tri |
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
mplayer -af volume=20:0 mediafile |
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
/** Basic OpenCV example for face detecion. | |
* Handles a still image or a video file. | |
**/ | |
#include <stdio.h> | |
#include <cv.h> | |
#include <highgui.h> | |
void detect_faces (IplImage*, CvHaarClassifierCascade*, CvMemStorage*); | |
void cleanup (char*, CvHaarClassifierCascade*, CvMemStorage*); | |
void print_help (char*); |
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
#grep through files, | |
#search list titles which start with ':' | |
#replace colons with tabs | |
#return file name, line number, title | |
grep -n -e '^:.*text' ./* | sed 's/:\+/\t/g' |
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
#=============================================================================== | |
# RemoteTCP.py, v0.1, released 01.26.08. | |
# Installation notes, usage and commentary: | |
# http://lamberta.posterous.com/remotetcp-for-robofab-and-fontlab | |
# | |
# Copyright (c) William Lamberta, <www.lamberta.org> | |
# Released under the BSD License, | |
# see www.opensource.org/licenses/bsd-license.php for details. | |
# Includes code from RoboFab <www.robofab.org>, | |
# Copyright (c) The RoboFab Developers, Just van Rossum, Tal Leming, Erik van Bloklandwhich. |
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
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" | |
layout="absolute" width="450" height="400" | |
backgroundGradientAlphas="[0.93, 0.69]" | |
backgroundGradientColors="[#FFFFFF, #DFDDDD]" | |
applicationComplete="initApp();"> | |
<mx:Script> | |
<![CDATA[ | |
//pv3d |
OlderNewer