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
require 'rubygems' | |
require 'hornetseye_ffmpeg' | |
require 'hornetseye_xorg' | |
include Hornetseye | |
class Node | |
def nms(threshold) | |
self >= dilate.major(threshold) | |
end | |
def have(n, corners) | |
hist = mask(corners).histogram max + 1 |
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
Regarding the installation, the Ruby Gems hornetseye-kinect, | |
hornetseye-frame, multiarray, and malloc are required [1]. It is also | |
recommended to install hornetseye-xorg for displaying windows with Ruby. | |
XCode and Ruby already were installed. There was an issue with Rubygems | |
though [2]. | |
One needs to install MacPorts [3] and configure it to build universal | |
binaries [4]. | |
[5] explains how to install git, cmake, and libfreenect. Note that you | |
need to build universal binaries of libfreenect according to [6]. Also libfreenect | |
requires the jpeg libraries to be installed: |
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 ruby | |
require 'rubygems' | |
require 'Qt4' | |
class Test < Qt::Widget | |
def keyPressEvent(e) | |
if e.modifiers == Qt::ControlModifier | |
mimeData = $qApp.clipboard.mimeData | |
case e.key | |
when Qt::Key_C | |
puts 'copy!' |
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
#import <Foundation/Foundation.h> | |
#import <Foundation/NSUrl.h> | |
#import <Foundation/NSString.h> | |
// file_reference_url.mm: convert weird Mac OS file reference URL to a file URL | |
// Compilation: | |
// gcc -o file_reference_url file_reference_url.mm -framework Cocoa | |
// Example: | |
// ./file_reference_url file:///.file/id=6571367.15106761 |
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 | |
; Also see http://pleasegodno.wordpress.com/common-lisp-tutorials/common-lisp-gui-programming-with-commonqt/introduction-to-commonqt/ | |
; or see http://kvardek-du.kerno.org/2011/12/setting-up-commonqt-on-osx.html if you're still using Mac OS | |
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" | |
(user-homedir-pathname)))) | |
(when (probe-file quicklisp-init) | |
(load quicklisp-init))) |
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
;---------------------------------------- | |
; based upon a script of "Written by KiCHiK 2003-01-18 05:57:02" | |
;---------------------------------------- | |
!verbose 3 | |
!include "WinMessages.NSH" | |
!verbose 4 | |
;==================================================== | |
; get_NT_environment | |
; Returns: the selected environment | |
; Output : head of the stack |
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 ruby | |
require 'heist' | |
# true | |
scheme = Heist::Runtime.new | |
# #<runtime: call/cc disabled, hygienic, eager> | |
def test x | |
puts "\# #{x.class}: #{x}" | |
x | |
end | |
# 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
*.png | |
*.avi | |
.*.un~ | |
.*.swp |
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
embed | |
base.c | |
.*.un~ | |
*.3m.c | |
*.o |
OlderNewer