Skip to content

Instantly share code, notes, and snippets.

@abbiekressner
abbiekressner / set_pantheon_terminal_solarized
Created March 1, 2016 10:38 — forked from anonymous/set_pantheon_terminal_solarized
Sets Pantheon Terminal (Elementary OS) to Solarized Theme
#!/bin/bash
echo
echo "This script sets the pantheon terminal to the Solarized theme."
echo
until [[ $scheme -eq 1 ]] || [[ $scheme -eq 2 ]] || [[ $scheme -eq 3 ]]; do
echo "Choose one:"
echo "1) Light"
echo "2) Dark"
@abbiekressner
abbiekressner / .octaverc
Created January 29, 2014 02:06
Enable plotting for Octave in iTerm
## The following allows plotting to work within iTerm.app
setenv GNUTERM qt
@abbiekressner
abbiekressner / .octaverc
Last active October 1, 2018 03:37
Set Octave's default editor to MacVim and/or enable plotting when running Octave within iTerm
## Set MacVim as default Octave editor (http://wiki.octave.org/Vim)
edit mode sync
edit home .
EDITOR('/Applications/MacVim.app/Contents/MacOS/Vim -p -g > /dev/tty 2>&1 < /dev/tty %s')
## The following allows plotting to work within iTerm.app
setenv GNUTERM qt
@abbiekressner
abbiekressner / spectrogram.m
Created January 29, 2014 02:00
Wrapper to sync Matlab's spectrogram function with Octave's specgram function
function varargout = spectrogram (varargin)
% Matlab: [S,F,T]=spectrogram(x,window,noverlap,nfft,fs)
% Octave: [S [, f [, t]]] = specgram(x [, n [, Fs [, window [, overlap]]]])
if nargin == 5
[varargout{1:nargout}] = specgram (varargin{1},varargin{4},varargin{5},varargin{2},varargin{3});
elseif nargin == 4
[varargout{1:nargout}] = specgram (varargin{1},varargin{4},[],varargin{2},varargin{3});
elseif nargin == 3