Skip to content

Instantly share code, notes, and snippets.

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

Ian Max Andolina iandol

👾
typing away...
View GitHub Profile
@iandol
iandol / out.json
Created May 13, 2017 14:45
Example of ---debug output from Panzer
[
{
"metadata": {
"author": {
"c": [
{
"c": "John",
"t": "Str"
},
{
@iandol
iandol / bookends_to_bibtex.scpt
Last active February 24, 2019 05:48 — forked from naupaka/bookends_to_bibtex.scpt
Applescript to export selected groups in the Bookends bibliography management software to bibtex files. This has been modified to write to file for batches of references which stops Bookends crashes. Also I've added a script (fixCase.rb) to enforce the case of keywords using {}. These should both be placed on the path, then called using: `booken…
#!/usr/bin/osascript
(*
Script written by Naupaka Zimmerman
March 17, 2017
MIT License
Copyright (c) 2017 Naupaka Zimmerman
@iandol
iandol / aminimal.tex
Last active March 14, 2017 05:52
Fresh install of BasicTeX 2016, update using TeX Live Utility, I get error with tuenc.def core latex file as my LaTeX2e version is outdated <2016/03/31>. If I don't update then I get no error. There are no custom .FMT files in my TEXMFVAR which is empty. See https://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/4508
\RequirePackage{latexbug}
\documentclass{article}
\usepackage{mathspec}
\defaultfontfeatures{Ligatures=TeX}
\setromanfont{Palatino}
\setsansfont{Helvetica}
\begin{document}
\section{Introduction}
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 367.35 (buildd@lgw01-18) Tue Aug 9 10:11:49 UTC 2016
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 1920 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
@iandol
iandol / document.xml
Last active January 4, 2017 09:05
A single paragraph in Word 2016 referencing a captioned figure. Tidied document.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/of
@iandol
iandol / debug.log
Created December 1, 2016 02:11
Standard ZaphodHead setup, always sync errors. PTB 3.0.13; Ubuntu 16.10;
>> Screen('Preference', 'Verbosity', 8);
>> VBLSyncTest
ans =
0
RandR: 1024x768 (0x228) 65.0MHz
h: width 1024 start 1048 end 1184 total 1344 skew 0
v: height 768 start 771 end 777 total 806
@iandol
iandol / run1.log
Last active December 23, 2016 05:39
Linux PTB sync error on first run. Matlab 2016b Ubuntu 16.10 NVidia binary 367.57, 2nd run and everything seems fine...
>> Screen('Preference', 'Verbosity', 8);
PTB-INFO: Display ':0' : X-Screen 0 : Assigning primary output as 5 with RandR-CRTC 0 and GPU-CRTC 0.
>> VBLSyncTest
ans =
0
RandR: 1920x1080 (0x224) 148.5MHz
h: width 1920 start 2008 end 2052 total 2200 skew 0
@iandol
iandol / Search ID-Bookends.scpt
Last active October 26, 2018 22:50
Applescripts that ease integration of Bookends reference manager (http://www.sonnysoftware.com) with other applications. They take selected text in any application and paste it into Bookends Pubmed browser, Live-Search, and unique ID search respectively. So you can, for example, find a ref like (Hubel and Wiesel, 1962), select it, search for [Hu…
on run
tell application "System Events"
keystroke "c" using command down
delay 0.5
do shell script "id=$(pbpaste); open \"bookends://sonnysoftware.com/$id\""
end tell
end run
@iandol
iandol / broken.xml
Last active December 6, 2015 12:55
LibreOffice 5.1 regression see https://bugs.documentfoundation.org/show_bug.cgi?id=96245 — it appears this is to do with a new requirement that all draw:frame elements need draw:name properties in LO V5.1
<text:p>
<draw:frame text:anchor-type="as-char" draw:style-name="fr1" svg:width="95%">
<draw:text-box>
<text:p>
<draw:frame text:anchor-type="as-char" draw:z-index="1" >
<draw:image xlink:href="Test1.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
<text:p>Figure 1—Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah</text:p>
</draw:text-box>
function testptb( )
Screen('preference','skipsynctests',2)
backgroundColour = [0.3 0.3 0.3];
name = 'test';
%-----dots stimulus
n = dotsStimulus();
n.name = name;
n.size = 5;