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 / 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 / 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 / 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 / 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
# 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 / 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}
@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 / out.json
Created May 13, 2017 14:45
Example of ---debug output from Panzer
[
{
"metadata": {
"author": {
"c": [
{
"c": "John",
"t": "Str"
},
{
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)
@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