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
  • 22:16 (UTC +08:00)
View GitHub Profile
@iandol
iandol / dotstest.m
Last active May 17, 2018 06:55
Testing dot motion on the Display++ — you need to download and install my `opticka` toolbox from https://github.com/iandol/opticka/archive/master.zip for this to run…
% install https://github.com/iandol/opticka/archive/master.zip first
clear s d
% this sets up the PTB screen
s = screenManager('verbose',false,'blend',true,...
'bitDepth','FloatingPoint32Bit',... % try FloatingPoint32Bit EnableBits++Mono++Output EnableBits++Bits++Output
'debug',false,... % don't check for dropped frames etc.
'windowed', [],... %empty is full screen
'screen', [],... %empty chooses the highest avilable screen
'srcMode','GL_SRC_ALPHA', 'dstMode', 'GL_ONE_MINUS_SRC_ALPHA',...
'backgroundColour',[0.5 0.5 0.5]); %change background colour here
@iandol
iandol / BE-Selection.xml
Last active April 26, 2018 02:51
Example OPML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<opml version="1.0">
<head>
<title>Bookends References Export</title>
<dateCreated>Thursday, 26 April 2018 at 10:42:11</dateCreated>
</head>
<body>
<outline text="Storm et al., 2017 (ID:59115)" _note="Consciousness Regained: Disentangling Mechanisms, Brain Systems, and Behavioral Responses.&#10;
Cite: [@storm2017a]&#10;
---------------------------&#10;
BitsPlusPlus: Connecting to Bits# device via serial port [/dev/ttyACM1], as provided by configuration file [/home/aristotle/.Psychtoolbox/BitsSharpConfig.txt].
BitsPlusPlus: Device information:
BitsPlusPlus: $ProductType;Display++;
BitsPlusPlus: $SerialNumber;D6A01148
BitsPlusPlus: $FirmwareDate;26/09/2017 15:45;
You can run extended diagnostics and fixes if you answer the following question
with yes. However, we recommend first running this script once, answering no. Then
if that at least somewhat succeeds, save the closest to good result via 's' key,
then rerun the script and answer yes, to either fix remaining errors and glitches,
@iandol
iandol / Matlab Window Output
Last active May 31, 2018 20:24
Running BitsPlusIdentityClutTest on Ubuntu 17.0.4 & PTB 3.0.14 with a Radeon Pro WX 4100 and Display++ — we first tried diagnostics mode OFF but the built-in 5 CLUTs all gave wrong results (background colour cycled, the grey rotating patch was filled with noise).
>> BitsPlusIdentityClutTest
BitsPlusPlus: Connecting to Bits# device via serial port [/dev/ttyACM0], as provided by configuration file [/home/aristotle/.Psychtoolbox/BitsSharpConfig.txt].
BitsPlusPlus: Device information:
You can run extended diagnostics and fixes if you answer the following question
with yes. However, we recommend first running this script once, answering no. Then
if that at least somewhat succeeds, save the closest to good result via 's' key,
then rerun the script and answer yes, to either fix remaining errors and glitches,
function ProceduralGaussBlob(ngabors, nlines)
PsychDefaultSetup(2);
if nargin < 1 || isempty(ngabors)
ngabors = 200;
end
screenid = max(Screen('Screens'));
Screen('Preference', 'SkipSyncTests', 1)
@iandol
iandol / Xorg.0.log
Last active August 18, 2017 04:27
Trying to get ZaphodHead setup, control monitor is mini-DP to DVI LCD, PTB monitor is mini-DP to VGA CRT; on Ubuntu 17.04 with AMD Radeon Pro WX4100
[ 3.535]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[ 3.535] X Protocol Version 11, Revision 0
[ 3.535] Build Operating System: Linux 4.4.0-83-generic x86_64 Ubuntu
[ 3.535] Current Operating System: Linux aristotle-unix 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11 10:55:28 UTC 2017 x86_64
[ 3.535] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0-33-generic.efi.signed root=UUID=e53ea4cd-ff04-4303-a97d-f53700b05bd0 ro quiet splash vt.handoff=7
[ 3.536] Build Date: 17 July 2017 02:38:00PM
[ 3.536] xorg-server 2:1.19.3-1ubuntu1.1 (For technical support please see http://www.ubuntu.com/support)
[ 3.536] Current version of pixman: 0.34.0
@iandol
iandol / BEtoOPML.scpt
Last active May 13, 2019 14:42
Bookends to OPML Exporter — Applescript by Dave83 with some further tweaks; see https://www.sonnysoftware.com/phpBB3/viewtopic.php?f=6&t=3882
#!/usr/bin/osascript
--Script to Export Bookends Notes to OPML file v1.18
--Written by Dave Glogowski (modified by iandol)
--07 August 2017
--
--This script converts Bookends references and associated notes into an OPML structured file which can then be imported into Scrivener's research folder.
--Each reference is a top level card which contains the Title, Author, Date, Type, Publisher, Abstract, and Bookends citation key
--If there are notes associated with a reference, each note creates its own subordinate note card with the Page number (if any), note header, quotes,
--comments, and keywords (tags). This allows you to individually review each comment and change its status (label) within Scrivener.
--
>> edit runIsoluminant.m
>> IsoLum
--->>> runIsoluminant Started!
---> screenManager: Sync Tests enabled.
PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.14 - Build date: Jun 8 2017).
PTB-INFO: Support status on this operating system release: Linux 4.10.0-28-lowlatency Supported.
@iandol
iandol / blank.md
Created June 3, 2017 13:38
test file

title: "Scrivener 3 Test Project" author:

  • John Doe
  • Joanna Doe twocolumn: toc: pandocomatic_: use-template:
  • latex-with-refs
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex 2017.5.26) 1 JUN 2017 09:16
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**out.tex
(./out.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 22 language(s) loaded.
(/usr/local/texlive/2017basic/texmf-dist/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2017/04/13 v3.23 KOMA-Script document class (article)