Skip to content

Instantly share code, notes, and snippets.

View iandol's full-sized avatar
👾
typing away...

Ian Max Andolina iandol

👾
typing away...
  • Institute of Neuroscience, Chinese Academy of Sciences
  • Shanghai
  • 13:16 (UTC +08:00)
View GitHub Profile
@iandol
iandol / gist:1106683
Created July 26, 2011 12:53
calibrateLuminanance.m -- use PTB and a ColorCalII to generate Gamma correction functions. To use simply type calibrateLuminance and it will prompt if zero calibration needs to be performed, if so it zero calibrates then runs through a defined set of lumi
% ========================================================================
%> @brief calibrateLuminance manaul / automatic luminance calibration
%>
%> calibrateLuminance manaul / automatic luminance calibration
%> To enter settings use a structure:
%>
%> >> mycal = calibrateLuminance(struct('nMeasures',25,'useCCal',true))
%>
%> calibrateLuminance will ask if you need to zero calibrate, you only need
%> to do this after first plugging in the ColorCal. Then simply place the
@iandol
iandol / gist:1109801
Created July 27, 2011 16:50
Output of lsusb -vv
Bus 007 Device 003: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
@iandol
iandol / gist:1220396
Created September 15, 2011 20:36
brew install libwpg
┌┬─ian @ Hobbes in ~
└┴─❧ brew install -v libwpg
==> Downloading http://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-0.2.0/libwpg-0.2.0.tar.bz2
File already downloaded in /Users/ian/Library/Caches/Homebrew
/usr/bin/tar xf /Users/ian/Library/Caches/Homebrew/libwpg-0.2.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/libwpg/0.2.0 --disable-debug --disable-dependency-tracking
./configure --prefix=/usr/local/Cellar/libwpg/0.2.0 --disable-debug --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
┌┬─iana @ pro11 in ~/Code/homebrew-1 (mmd●)
└┴─❧ brew install -v multimarkdown
==> Downloading https://github.com/fletcher/peg-multimarkdown/tarball/3.1b1
File already downloaded in /Users/iana/Library/Caches/Homebrew
/usr/bin/tar xf /Users/iana/Library/Caches/Homebrew/multimarkdown-3.tgz
==> make
make
CC=gcc make -C peg-0.1.4
/usr/bin/llvm-gcc -c `pkg-config --cflags glib-2.0` -O3 -march=core2 -msse4 -w -pipe -o markdown_output.o markdown_output.c
/usr/bin/llvm-gcc -c `pkg-config --cflags glib-2.0` -O3 -march=core2 -msse4 -w -pipe -o markdown_lib.o markdown_lib.c
@iandol
iandol / Lion 32bit kext
Created November 23, 2011 14:49
Verbosity 10 logs with/without kext
PTB-INFO: Connection to Psychtoolbox kernel support driver (Revision 0) established. Will use the driver...
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 1 (Old CGDisplayId 0x5b81c5c1). Reenumerating all displays...
PTB-DEBUG: In PsychCaptureScreen(): After display capture for screen 1 (New CGDisplayId 0x5b81c5c1). Reenumeration done.
PTB-INFO: This is Psychtoolbox-3 for Apple OS X, under Matlab (Version 3.0.9 - Build date: Oct 20 2011).
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.
@iandol
iandol / brew --config
Created May 18, 2012 15:00
config.log
HOMEBREW_VERSION: 0.9
HEAD: 4bf08f2081ef4b512b23c684411faf372aafc860
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit nehalem
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: build 5666
@iandol
iandol / cool
Created May 21, 2012 09:05
PlayMoviesDemoOSX cool+serious log
>> PlayMoviesDemoOSX
Serious or cool? Type s or c [s/c]? c
PTB-INFO: This is Psychtoolbox-3 for Apple OS X, under Matlab 64-Bit (Version 3.0.10 - Build date: May 20 2012).
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.
PTB-INFO: Using desktop compositor for onscreen window creation...
@iandol
iandol / a. brew doctor
Created May 21, 2012 19:44
brew install gst-ffmpeg -- Lion 10.7.4
┌┬─ian @ Hobbes in ~
└┴─❧ brew doctor
Your system is raring to brew.
┌┬─ian @ Hobbes in ~
└┴─❧ sudo xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
┌┬─ian @ Hobbes in ~
└┴─❧ brew install -vd gst-ffmpeg
==> Downloading http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.13.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gst-ffmpeg-0.10.13.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/gst-ffmpeg-0.10.13.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/gst-ffmpeg/0.10.13 --disable-dependency-tracking
./configure --prefix=/usr/local/Cellar/gst-ffmpeg/0.10.13 --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
@iandol
iandol / currenttrack.scpt
Created June 20, 2012 16:59
Current iTunes Track in Growl
tell application "Growl"
-- Make a list of all the notification types
-- that this script will ever send:
set the allNotificationsList to {"iTunes Playing Track"}
-- Make a list of the notifications
-- that will be enabled by default.
-- Those not enabled by default can be enabled later
-- in the 'Applications' tab of the growl prefpane.
set the enabledNotificationsList to {"iTunes Playing Track"}
-- Register our script with growl.