This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flush.console() | |
# Set working directory | |
setwd("/Users/Felix/Documents/University/Maastricht University/Master Thesis/") | |
# Include spreadPlotter code | |
source("Code/R/Main/DataPlotting.R") | |
source("Code/R/Library/additionalFunctions.R") | |
# Tranche configuration | |
correlationType <- "Compound" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import necessary packages | |
library(xts); | |
library(timeDate); | |
require(Hmisc); | |
library(ggplot2); | |
library(scales); | |
library(reshape2); | |
library(gridExtra); | |
library(grid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Decide what to do with the Latex & View log window | |
# | |
if not tmPrefs['latexKeepLogWin']: | |
if numErrs == 0 and viewer != 'TextMate': | |
eCode = 200 | |
else: | |
eCode = 0 | |
else: | |
eCode = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(placeOnRight) | |
[layoutView addResizeInfo:(OakResizeInfo){ 11, 15, OakResizeInfo::kTopLeft, OakResizeInfo::kWidth } forView:fileBrowser.view]; | |
else [layoutView addResizeInfo:(OakResizeInfo){ -11, 15, OakResizeInfo::kTopRight, OakResizeInfo::kWidth } forView:fileBrowser.view]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nice -n 20 CocoaDialog progressbar --indeterminate --title 'LaTeX Watch' --text 'LaTeX Watch: Compiling document' </dev/console &>/dev/null & | |
progressbar_pid=$(jobs -p %%) | |
disown %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (defined ($progressbar_pid)) { | |
kill(15, $progressbar_pid) or fail("Failed to close progress bar window: $!"); | |
undef $progressbar_pid; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allan: I've almost fixed the LaTeX Watch | |
command in the latex.tmbundle. One issue | |
is left, after opening the document in the | |
viwer, the latex_watch.pl script fails to | |
kill the progress window opened using | |
CocoaDialog. | |
the progress bar dialog is created this | |
way: | |
https://gist.github.com/3361804 | |
latex_watch.pl tries to kill it this way: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Further improvements to theming the gutter. There are now the following keys which can be set to change the color of gutter elements: Dennis Vennink | |
gutterDivider: Border between text view and gutter. | |
gutterForeground: Text color. | |
gutterBackground: Background color. | |
gutterIcons: Color of the images in the gutter. | |
gutterSelectionForeground: Text color for lines containing caret / part of a selection. | |
gutterSelectionBackground: Background color for lines containing caret / part of a selection. | |
gutterSelectionIcons: Color of images on lines containing caret / part of a selection. | |
gutterSelectionBorder: Border between selected and non-selected lines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ ! -z "$TM_INPUT_START_LINE" ]; then | |
if [ `echo -en "$TM_SELECTED_TEXT" | egrep -cv '^[ ]*#'` -gt 0 ]; then | |
echo -en "$TM_SELECTED_TEXT" | "$TM_BUNDLE_SUPPORT/tmR.rb" "$CRAN" 1 | |
else | |
cat | "$TM_BUNDLE_SUPPORT/tmR.rb" "$CRAN" 0 | |
fi | |
else | |
cat | "$TM_BUNDLE_SUPPORT/tmR.rb" "$CRAN" 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Foo") | |
print("Bar") |
OlderNewer