This file contains hidden or 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
tell application "Safari" | |
if not (exists document 1) then return | |
set theURL to URL of current tab of window 1 | |
close current tab of window 1 | |
end tell | |
tell application "Google Chrome" | |
if not (exists window 1) then | |
reopen | |
else |
This file contains hidden or 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
license: gpl-3.0 |
This file contains hidden or 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
license: gpl-3.0 |
This file contains hidden or 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
#!/bin/bash | |
# | |
# trash - Move files to the appropriate .Trash file on Mac OS X. (Intended | |
# as an alternative to 'rm' which immediately deletes the file.) | |
# | |
# v0.1 2007-05-21 - Morgan Aldridge <[email protected]> | |
# Initial version. | |
# v0.2 2010-10-26 - Morgan Aldridge | |
# Use appropriate .Trashes folder when trashing files |
This file contains hidden or 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
Show hidden characters
{ | |
"WrapPlus.break_on_hyphens": false, | |
"WrapPlus.break_on_long_words": false, | |
"added_words": | |
[ | |
"discriminability", | |
"neuroscience", | |
"achievability", | |
"cyber", | |
"invertibility", |
This file contains hidden or 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
% batchConvertSMA() - Convert all SMA files in current directory and | |
% sub-directories to CSV files. Additionally extract the | |
% header and save as a txt file. | |
function [data,params,head,events] = batchConvertSMA() | |
% Grab all SMA files in current directory and sub-directories | |
files = dir('**/*.SMA'); | |
% count number of SMA files |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# Most of this was selectively copied/edited from: https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
# Disable the sound effects on boot | |
sudo nvram SystemAudioVolume=" " | |
# Expand save panel by default | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true | |
# Expand print panel by default |
This file contains hidden or 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% DOCUMENT TITLE | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% PREAMBLE | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\documentclass[11pt]{article} | |
\usepackage{amsmath,amssymb,mathrsfs,graphicx,overpic,color} | |
\usepackage{verbatim,stackrel,url,float,enumerate,cleveref} |
This file contains hidden or 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 sublime | |
import sublime_plugin | |
class HighlightTodoListener(sublime_plugin.EventListener): | |
def highlight_todo(self, view): | |
# only highlight tex files | |
if not view.score_selector(0, "text.tex"): | |
return | |
# adapt this regex as you wish |