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
#!/usr/bin/env bash | |
# Help text | |
description="A bash script for compiling JOSS and JOSE papers locally"; | |
doc="compile [-j <journal>] [-d <doi>] [-v <volume>] [-i <issue>] [-p <page>] | |
[-s <submitted>] [-u <published>] [-r <review>] [-g <repository>] [-a <archive>] FILE | |
Compile a markdown FILE to a JOSS or JOSE paper. |
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
#! /usr/bin/env python3 | |
import platform | |
import pip | |
import sys | |
def pip_freeze(): | |
try: | |
from pip._internal.operations import freeze | |
except ImportError: # pip < 10.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
*** vasp.5.4.4/src/main.F Sat Nov 18 09:31:39 2017 | |
--- vasp.5.4.4.vel/src/main.F Sat Nov 18 13:18:45 2017 | |
*************** | |
*** 479,484 **** | |
--- 479,485 ---- | |
OPEN(UNIT=16,FILE=DIR_APP(1:DIR_LEN)//'DOSCAR',STATUS='UNKNOWN') | |
OPEN(UNIT=17,FILE=DIR_APP(1:DIR_LEN)//'OSZICAR',STATUS='UNKNOWN') | |
OPEN(UNIT=60,FILE=DIR_APP(1:DIR_LEN)//'PCDAT',STATUS='UNKNOWN') | |
+ OPEN(UNIT=62,FILE=DIR_APP(1:DIR_LEN)//'VDATCAR',STATUS='UNKNOWN') | |
OPEN(UNIT=61,FILE=DIR_APP(1:DIR_LEN)//'XDATCAR',STATUS='UNKNOWN') |
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
on handle_string(the_string) | |
if (length of the_string is 0) then | |
display dialog "Search OmniFocus for:" default answer "" | |
end if | |
open location "x-launchbar:hide" | |
my search_in_omnifocus(the_string) | |
end handle_string | |
on search_in_omnifocus(the_search_string) | |
tell application "OmniFocus" |
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
#!/usr/local/bin/ruby | |
# September 16, 2013 | |
require 'optparse' | |
options = {} | |
executable_name = File.basename($PROGRAM_NAME) |
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
#! /home/morgan/bin/ruby/bin/ruby | |
# Calculates the mean squared error between two data sets | |
# http://en.wikipedia.org/wiki/Mean_squared_error | |
# BJM 26/06/13 | |
def check_files_exist( filenames ) | |
all_files_exist = true | |
filenames.each do |filename| |
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
[ | |
// Run LaTeX plugin to insert reference code | |
{ | |
"keys": ["super+l", "super+r"], | |
"command": "insert_latex_reference", | |
"context": [ | |
{ "key": "selector", "operator": "equal", "operand": "text.tex.latex" } | |
] | |
} | |
] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Symbol List</string> | |
<key>scope</key> | |
<string>meta.function.section.latex</string> | |
<key>settings</key> | |
<dict> |
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
<snippet> | |
<content><![CDATA[\begin{figure}[tb] | |
\begin{center} | |
\resizebox{${3:8.5}cm}{!}{\includegraphics*{${1:filename}.eps}} % $4 | |
\caption{\label{fig:${1:label}}${2:Caption}} | |
\end{center} | |
\end{figure} | |
$0]]></content> | |
<tabTrigger>figure</tabTrigger> |
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
<snippet> | |
<content><![CDATA[\begin{table}[htb] | |
\begin{center} | |
\begin{tabular}{$3} | |
$0 \\\\ | |
\end{tabular} | |
\caption{\label{tab:${1:label}}${2:CAPTION}} | |
\end{center} | |
\end{table} |
NewerOlder